X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FUplink.class.php;h=586f9f665898821def007cda7c40928ec01cdde9;hp=e7b8e9c9bc88fc9bf74a305169407fa01eac33f6;hb=e8b8beead9e81f42f9c125d82ab6b21b60718f67;hpb=8fc32c585446865b73c89859c35d1387fadbf9af diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index e7b8e9c..586f9f6 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -195,6 +195,9 @@ class Uplink { case "EB": $this->recv_end_of_burst($from, $arguments); break; + case "EA": + $this->recv_end_of_burst_ack($from, $arguments); + break; //default default: //unknown cmd @@ -262,7 +265,6 @@ class Uplink { } private function recv_nick($from, $args) { - //[recv] AM N Zer0n|IRPG 2 1292194168 ~Zer0n c04D8C5.localIP +oiwgrftx Zer0n Zer0n.admin.WebGamesNet AKBNjF AMAAj :Zer0n IRPG - Will never answer here. if(count($args) == 2) { //Nick change $user = P10_User::getUserByNum($from); @@ -302,13 +304,26 @@ class Uplink { } } - + private function recv_end_of_burst_ack($from, $args) { + //nothing to do here? + } /******************************************************************************************** * SERVER FUNCTIONS * ********************************************************************************************/ private function burst() { + foreach($this->server->getUsers() as $user) { + $nick = $user->getNick(); + $connect_time = $user->getConnectTime(); + $ident = $user->getIdent(); + $host = $user->getHost(); + $modes = $user->getModes()->getModeString(); + $ip = Numerics::numericFromIP($user->getIP()); + $numeric = $user->getNumeric(); + $realname = $user->getRealname(); + $this->send("N", $nick, $connect_time, $ident, $host, $modes, $ip, $numeric, $realname); + } $this->send("EB"); }