fixed variable name :D
authorpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 03:59:26 +0000 (05:59 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 03:59:26 +0000 (05:59 +0200)
Bots/PulseBot.class.php

index a9c2c7c633c6689b144971501713179d5e7278cc..63d3e4a0269f5c042c2f68b4327b3bfd41c469ab 100644 (file)
@@ -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])) {