BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: Tichy on July 25, 2007, 03:34:54 pm

Title: org relay to IRC
Post by: Tichy 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));
                        }
                }
        }
Title: Re: org relay to IRC
Post by: Nytridr 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.
Title: Re: org relay to IRC
Post by: Temar 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)
Title: Re: org relay to IRC
Post by: Alreadythere on July 25, 2007, 06:39:23 pm
Moved strip_formatting in the send_irc() function itself, thanks for bringing this up.
SimplePortal 2.3.7 © 2008-2024, SimplePortal