From f2518601341be698541f0a642aa750ef0187cfd4 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 30 Jul 2013 00:10:09 +0200 Subject: [PATCH] fixed bug in Uplink.class.php (fixed handling of Server kicks) --- Uplink/Uplink.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index bef5d05..378d4b6 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -502,7 +502,7 @@ class Uplink { private function recv_kick($from, $args) { $user = P10_User::getUserByNum($from); - if($user == null) { + if($user == null && strlen($from) != 2) { trigger_error("An unknown user tries to kick another user on recv_kick.", E_USER_ERROR); return; } @@ -516,7 +516,7 @@ class Uplink { } if($this->eventHandler) $this->eventHandler->event_kick($user, $target, $channel, $args[1]); - $channel->partUser($user); + $channel->partUser($target); } private function recv_kill($from, $args) { -- 2.20.1