From: pk910 Date: Tue, 30 Aug 2011 11:24:35 +0000 (+0200) Subject: fixed "Zer0n is stupid"-Bug X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=e9d01ca1cdf0ef7a1cc81022059636110bad3658 fixed "Zer0n is stupid"-Bug --- diff --git a/Bots/ExampleBot.class.php b/Bots/ExampleBot.class.php index d01e5ca..b355205 100644 --- a/Bots/ExampleBot.class.php +++ b/Bots/ExampleBot.class.php @@ -83,7 +83,7 @@ class {$_NAME} extends Bot { // {$_NAME} will be replaced by our script later ; if($exp[0] == "hi") { $this->uplink->privmsg($this->example_bot, $channel, "Hallo ".$user->getNick()); // We send a message back - documentation is following } - if($exp[0] == "-users") { + if($exp[0] == "-users" && is_a($channel, "P10_Channel")) { $user_str = ""; foreach($channel->getUsers() as $chan_user) { $extra="";