From 051ecddb99aba9afbfc8a09193e7dc13d823b9d3 Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 25 Aug 2011 14:30:41 +0200 Subject: [PATCH] don't trigger mode event if mode change is coming from a server --- Uplink/Uplink.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.20.1