From: pk910 Date: Thu, 25 Aug 2011 12:30:41 +0000 (+0200) Subject: don't trigger mode event if mode change is coming from a server X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=051ecddb99aba9afbfc8a09193e7dc13d823b9d3 don't trigger mode event if mode change is coming from a server --- diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index 703a98a..345ceb8 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -702,7 +702,7 @@ class Uplink { if($channel == null) $channel = new P10_Channel($args[0]); $channel->getModes()->setModes($modes); - if($this->eventHandler) + if($this->eventHandler && strlen($from) != 2) $this->eventHandler->event_chanmode($user, $channel, $modes); } else { $targetUser = P10_User::getUserByNick($args[0]);