X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FP10Formatter.class.php;h=4d27a380e06db8745b3fb421dec7e55e27446444;hp=d280bf212b8f09827a300c0322e6668725444272;hb=0f30e96ae37491aee19e72b89cc54a6798d1f254;hpb=642e5fa114096506072cbc9ef6f16e31eecd7abf diff --git a/Uplink/P10Formatter.class.php b/Uplink/P10Formatter.class.php index d280bf2..4d27a38 100644 --- a/Uplink/P10Formatter.class.php +++ b/Uplink/P10Formatter.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,20 +21,37 @@ * * This file contains the command formatter. * - ************************************************************************ - * accessable methods: - * - * static String formatCMD(String $numeric, String $command, String[] $args) - * builds the command with the given arguments - * */ class P10Formatter { private static $commands = array( "PASS" => "PASS :%s", - "SERVER" => "SERVER %s 1 %s %s J10 %s]]] +s :%s", - "ERROR" => "ERROR :%s" + "SERVER" => "SERVER %s 1 %s %s J10 %s]]] +s6 :%s", + "ERROR" => "ERROR :%s", + "Z" => "{num} Z %s", + "N" => "{num} N %s 1 %s %s %s %s %s %s :%s", + "EB" => "{num} EB", + "EA" => "{num} EA", + "B" => "{num} B %s %s %s", + "Q" => "%s Q :%s", + "D" => "{num} D %s :%s (%s)", + "J" => "%s J %s %s %s", + "K" => "%s K %s %s :%s", + "P" => "%s P %s :%s", + "O" => "%s O %s :%s", + "M" => "%s M %s %s", + "SM" => "%s SM %s %s", + "OM" => "%s OM %s %s", + "311" => "{num} 311 %s %s %s %s * :%s", + "319" => "{num} 319 %s %s :%s", + "312" => "{num} 312 %s %s %s :%s", + "313" => "{num} 313 %s %s :%s", + "330" => "{num} 330 %s %s %s :is logged in as", + "318" => "{num} 318 %s %s :End of /WHOIS list.", + "401" => "{num} 401 %s %s :No such nick", + "SQ" => "{num} SQ :%s", + null => null ); public static function formatCMD($numeric, $command, $args) {