X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Bots%2FPulseBot.class.php;h=63d3e4a0269f5c042c2f68b4327b3bfd41c469ab;hp=997513a94c837200d7a6164330601d7674b83b04;hb=69b8eb1612fe65ca1e2c9edce194afea5bb56599;hpb=ddffd103502359153b425495e8834ebcb1e157f0 diff --git a/Bots/PulseBot.class.php b/Bots/PulseBot.class.php index 997513a..63d3e4a 100644 --- a/Bots/PulseBot.class.php +++ b/Bots/PulseBot.class.php @@ -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])) {