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