X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Bots%2FExampleBot.class.php;h=b355205651516f821a9e2a4a0cdee4704e34fc03;hp=d01e5cace5363c9bab18d5942f17819cb7b0665c;hb=e9d01ca1cdf0ef7a1cc81022059636110bad3658;hpb=051ecddb99aba9afbfc8a09193e7dc13d823b9d3 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="";