From 612c2da61421761d4f7797eacb33783dbc31f316 Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 28 Jul 2011 09:59:21 +0200 Subject: [PATCH] ircu gives us real nicknames on usermode changes --- 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 a23f4ce..9f3eb52 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -691,7 +691,7 @@ class Uplink { if($this->eventHandler) $this->eventHandler->event_chanmode($user, $channel, $modes); } else { - $targetUser = P10_User::getUserByNum($args[0]); + $targetUser = P10_User::getUserByNick($args[0]); if($targetUser == null) { trigger_error("Server tries to send a mode to an user that does not exist or was not found on recv_mode.", E_USER_ERROR); return; -- 2.20.1