fixed variable name :D
[PHP-P10.git] / Bots / PulseBot.class.php
index 997513a94c837200d7a6164330601d7674b83b04..63d3e4a0269f5c042c2f68b4327b3bfd41c469ab 100644 (file)
@@ -109,8 +109,8 @@ class {$_NAME} extends Bot {
        }
        
        function recive_privmsg($user, $channel, $message) {
-               if(!$this->botOppedOnChannel()) return;
-               $privs = $PHPChannel->getUserPrivs($user);
+               if(!$this->botOppedOnChannel($channel)) return;
+               $privs = $channel->getUserPrivs($user);
                $op = ($user->getModes()->hasMode('o') || ($privs & P10_Channel::USERPRIV_OPED));
                $exp = explode(" ", $message);
                switch(strtolower($exp[0])) {