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])) {