From: pk910 Date: Mon, 29 Jul 2013 22:10:09 +0000 (+0200) Subject: fixed bug in Uplink.class.php (fixed handling of Server kicks) X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=f2518601341be698541f0a642aa750ef0187cfd4 fixed bug in Uplink.class.php (fixed handling of Server kicks) --- 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) {