format
[PHP-P10.git] / Uplink / P10Formatter.class.php
index 4d27a380e06db8745b3fb421dec7e55e27446444..44b1c28b55c1fbcd866e7492fbd18e2d81234d8f 100644 (file)
@@ -1,12 +1,12 @@
 <?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        *
@@ -16,7 +16,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
  *                                                                      *
  ************************************************************************
- * 
+ *
  *  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",
@@ -41,6 +41,7 @@ class P10Formatter {
                "P"      => "%s P %s :%s",
                "O"      => "%s O %s :%s",
                "M"      => "%s M %s %s",
+               "L"      => "%s L %s :%s",
                "SM"     => "%s SM %s %s",
                "OM"     => "%s OM %s %s",
                "311"    => "{num} 311 %s %s %s %s * :%s",
@@ -51,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];