Development > Coding and development discussion

bug in 0.3.1 admin.php

(1/1)

Akarah:
in function tell, the first if should be:

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

--- End code ---


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: ---
      if (preg_match("/^" . $this -> bot -> commpre . "admin$/i", $msg))
        $this -> bot -> send_gc($this -> group_show());
      else if (existing stuff) ...

--- End code ---


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

[/edit]


cheers,

/Aka

Khalem:
Fixed and committed to SVN

Navigation

[0] Message Index

Go to full version