fixed bug in unbindBot
[PHP-P10.git] / ModCMD / Binding.class.php
index 7dc0d79567d82eb96b4b91f6b20bb7734c9ba248..5bf9a75fd1026e8d0b6e5ac1433a561c7b1766a0 100644 (file)
@@ -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)));
        }
        
 }