From 69b8eb1612fe65ca1e2c9edce194afea5bb56599 Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 10 Aug 2011 05:59:26 +0200 Subject: [PATCH] fixed variable name :D --- Bots/PulseBot.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bots/PulseBot.class.php b/Bots/PulseBot.class.php index a9c2c7c..63d3e4a 100644 --- a/Bots/PulseBot.class.php +++ b/Bots/PulseBot.class.php @@ -110,7 +110,7 @@ class {$_NAME} extends Bot { function recive_privmsg($user, $channel, $message) { if(!$this->botOppedOnChannel($channel)) return; - $privs = $PHPChannel->getUserPrivs($user); + $privs = $channel->getUserPrivs($user); $op = ($user->getModes()->hasMode('o') || ($privs & P10_Channel::USERPRIV_OPED)); $exp = explode(" ", $message); switch(strtolower($exp[0])) { -- 2.20.1