BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: Akarah on November 27, 2005, 04:49:17 pm

Title: bug in 0.3.1 admin.php
Post by: Akarah on November 27, 2005, 04:49:17 pm
in function tell, the first if should be:
Code: [Select]

if (preg_match("/^" . $this -> bot -> commpre . "admin$/i", $msg))


or it never proceeds to any further matches (missing $ at the end of the regex)

[edit]
can also add this line to the gc function in the same fashion:
Code: [Select]

      if (preg_match("/^" . $this -> bot -> commpre . "admin$/i", $msg))
        $this -> bot -> send_gc($this -> group_show());
      else if (existing stuff) ...


and probably pgroup as well.. never hurts to spam the admin list imo :)

[/edit]


cheers,

/Aka
Title: bug in 0.3.1 admin.php
Post by: Khalem on November 27, 2005, 06:21:25 pm
Fixed and committed to SVN
SimplePortal 2.3.7 © 2008-2024, SimplePortal