X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=Bots%2FExampleBot.class.php;h=b355205651516f821a9e2a4a0cdee4704e34fc03;hb=bb2b4fd1501bb1a83855e1bf0305dbf3b1f7f8aa;hp=299f151bdfbd8d4ff03d4a0f0f96e3beff3d9e8f;hpb=74fcc85514c9bd0a4a8dfbd909d9555a9f1ee5b8;p=PHP-P10.git diff --git a/Bots/ExampleBot.class.php b/Bots/ExampleBot.class.php index 299f151..b355205 100644 --- a/Bots/ExampleBot.class.php +++ b/Bots/ExampleBot.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -86,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="";