<?php
/******************************* PHP-P10 v2 *****************************
- * Copyright (C) 2011 Philipp Kreil (pk910) *
+ * Copyright (C) 2011-2012 Philipp Kreil (pk910) *
* *
* This program is free software: you can redistribute it and/or modify *
* 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 *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
************************************************************************
- *
+ *
* Uplink/P10Formatter.class.php
*
* This file contains the command formatter.
*/
class P10Formatter {
-
+
private static $commands = array(
"PASS" => "PASS :%s",
"SERVER" => "SERVER %s 1 %s %s J10 %s]]] +s6 :%s",
"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];