From e9d01ca1cdf0ef7a1cc81022059636110bad3658 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 30 Aug 2011 13:24:35 +0200 Subject: [PATCH] fixed "Zer0n is stupid"-Bug --- Bots/ExampleBot.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=""; -- 2.20.1