fixed "Zer0n is stupid"-Bug
authorpk910 <philipp@zoelle1.de>
Tue, 30 Aug 2011 11:24:35 +0000 (13:24 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 30 Aug 2011 11:24:35 +0000 (13:24 +0200)
Bots/ExampleBot.class.php

index d01e5cace5363c9bab18d5942f17819cb7b0665c..b355205651516f821a9e2a4a0cdee4704e34fc03 100644 (file)
@@ -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="";