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