X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FP10Formatter.class.php;h=44b1c28b55c1fbcd866e7492fbd18e2d81234d8f;hp=c01b651e5a4979c09caf85cb2be38c9f18098288;hb=7f51193ddac01b0540000c756c50167ff015e02a;hpb=811bc0c7a1f583fb624a0f8c3601146e063c5a25 diff --git a/Uplink/P10Formatter.class.php b/Uplink/P10Formatter.class.php index c01b651..44b1c28 100644 --- a/Uplink/P10Formatter.class.php +++ b/Uplink/P10Formatter.class.php @@ -6,7 +6,7 @@ * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 3 of the License, or * * (at your option) any later version. * - * * + * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * @@ -16,7 +16,7 @@ * along with this program. If not, see . * * * ************************************************************************ - * + * * Uplink/P10Formatter.class.php * * This file contains the command formatter. @@ -24,7 +24,7 @@ */ class P10Formatter { - + private static $commands = array( "PASS" => "PASS :%s", "SERVER" => "SERVER %s 1 %s %s J10 %s]]] +s6 :%s", @@ -52,9 +52,9 @@ class P10Formatter { "318" => "{num} 318 %s %s :End of /WHOIS list.", "401" => "{num} 401 %s %s :No such nick", "SQ" => "{num} SQ :%s", - null => null + null => null ); - + public static function formatCMD($numeric, $command, $args) { if(array_key_exists($command, self::$commands)) { $command = self::$commands[$command];