From 4028e6c95b34b709428de385366fce9dab28df53 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 30 Aug 2011 14:44:05 +0200 Subject: [PATCH] fixed bug in unbindBot --- ModCMD/Binding.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); } } -- 2.20.1