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
-
in function tell, the first if should be:
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:
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
-
Fixed and committed to SVN