From: pk910 Date: Wed, 10 Aug 2011 03:59:26 +0000 (+0200) Subject: fixed variable name :D X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=69b8eb1612fe65ca1e2c9edce194afea5bb56599 fixed variable name :D --- 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])) {