X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FUplink.class.php;h=9f3eb52c211e13eacc59fb3a8d24f29fcbffbd08;hp=a23f4cee487c3543c8958a67b94668fcbd8a0967;hb=612c2da61421761d4f7797eacb33783dbc31f316;hpb=f1a1066826a5cc04606cc12f0bd0b8e0383ca190 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;