collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: org relay to IRC  (Read 4833 times)

0 Members and 2 Guests are viewing this topic.

Offline Tichy

  • BeBot User
  • **
  • Posts: 42
  • Karma: +0/-0
org relay to IRC
« on: July 25, 2007, 03:34:54 pm »
There is a missing striping of format tags in the Relay_GUILD.php module (upstream version 0.4.0) when relaying to IRC. Simple fix:

Code: [Select]
--- BeBot_v0.4.0/modules/Relay_GUILD.php        2007-07-20 20:27:45.000000000 +0200
+++ FECom/modules/Relay_GUILD.php       2007-07-25 15:19:09.000000000 +0200
@@ -199,7 +199,7 @@
                {
                        if ($this -> bot -> settings -> get("irc", "connected"))
                        {
-                               $this -> bot -> irc -> send_irc("", "", $msg);
+                               $this -> bot -> irc -> send_irc("", "", $this -> bot -> irc -> strip_formatting($msg));
                        }
                }
        }

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: org relay to IRC
« Reply #1 on: July 25, 2007, 05:48:09 pm »
SVN needs that IF statement in there.  if you remove the IRC module then you get a Fatal error.
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: org relay to IRC
« Reply #2 on: July 25, 2007, 06:18:29 pm »
SVN needs that IF statement in there.  if you remove the IRC module then you get a Fatal error.
??
the change he is saying is adding
$this -> bot -> irc -> strip_formatting($msg)

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: org relay to IRC
« Reply #3 on: July 25, 2007, 06:39:23 pm »
Moved strip_formatting in the send_irc() function itself, thanks for bringing this up.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 358
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal