X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ModCMD%2FBinding.class.php;fp=ModCMD%2FBinding.class.php;h=5bf9a75fd1026e8d0b6e5ac1433a561c7b1766a0;hb=4028e6c95b34b709428de385366fce9dab28df53;hp=7dc0d79567d82eb96b4b91f6b20bb7734c9ba248;hpb=e9d01ca1cdf0ef7a1cc81022059636110bad3658;p=PHP-P10.git 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))); } }