projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed bug in unbindBot
[PHP-P10.git]
/
ModCMD
/
Binding.class.php
diff --git
a/ModCMD/Binding.class.php
b/ModCMD/Binding.class.php
index 7dc0d79567d82eb96b4b91f6b20bb7734c9ba248..5bf9a75fd1026e8d0b6e5ac1433a561c7b1766a0 100644
(file)
--- 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)
));
}
}