fixed variable name :D
[PHP-P10.git] / 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])) {