From: pk910 Date: Tue, 30 Aug 2011 12:44:05 +0000 (+0200) Subject: fixed bug in unbindBot X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=4028e6c95b34b709428de385366fce9dab28df53 fixed bug in unbindBot --- diff --git a/ModCMD/Binding.class.php b/ModCMD/Binding.class.php index 7dc0d79..5bf9a75 100644 --- a/ModCMD/Binding.class.php +++ b/ModCMD/Binding.class.php @@ -37,7 +37,7 @@ class Binding { } public function match($bot, $method) { - return ($bot === $this->bot && strtolower($this->method) == strtolower($method)); + return ($bot === $this->bot && (!$method || strtolower($this->method) == strtolower($method))); } }