fixed bug in unbindBot
authorpk910 <philipp@zoelle1.de>
Tue, 30 Aug 2011 12:44:05 +0000 (14:44 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 30 Aug 2011 12:44:05 +0000 (14:44 +0200)
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)));
        }
        
 }