fixed missing parameter in PulseBot.class.php
authorpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 03:58:33 +0000 (05:58 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 03:58:33 +0000 (05:58 +0200)
Bots/PulseBot.class.php

index 997513a94c837200d7a6164330601d7674b83b04..a9c2c7c633c6689b144971501713179d5e7278cc 100644 (file)
@@ -109,7 +109,7 @@ class {$_NAME} extends Bot {
        }
        
        function recive_privmsg($user, $channel, $message) {
        }
        
        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);
                $privs = $PHPChannel->getUserPrivs($user);
                $op = ($user->getModes()->hasMode('o') || ($privs & P10_Channel::USERPRIV_OPED));
                $exp = explode(" ", $message);