From 16b3809865d59ff5a1e1ac0899a061a3cedd3bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 7 Sep 2012 22:23:27 +0200 Subject: [PATCH] Add Command Suffix to commands --- file/lib/system/chat/command/CommandHandler.class.php | 2 +- .../command/commands/{Away.class.php => AwayCommand.class.php} | 2 +- .../commands/{Color.class.php => ColorCommand.class.php} | 2 +- .../command/commands/{Free.class.php => FreeCommand.class.php} | 2 +- .../command/commands/{Info.class.php => InfoCommand.class.php} | 2 +- .../chat/command/commands/{Me.class.php => MeCommand.class.php} | 2 +- .../commands/{Plain.class.php => PlainCommand.class.php} | 2 +- .../commands/{Restore.class.php => RestoreCommand.class.php} | 2 +- .../commands/{Temproom.class.php => TemproomCommand.class.php} | 2 +- .../commands/{Where.class.php => WhereCommand.class.php} | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) rename file/lib/system/chat/command/commands/{Away.class.php => AwayCommand.class.php} (94%) rename file/lib/system/chat/command/commands/{Color.class.php => ColorCommand.class.php} (97%) rename file/lib/system/chat/command/commands/{Free.class.php => FreeCommand.class.php} (96%) rename file/lib/system/chat/command/commands/{Info.class.php => InfoCommand.class.php} (97%) rename file/lib/system/chat/command/commands/{Me.class.php => MeCommand.class.php} (93%) rename file/lib/system/chat/command/commands/{Plain.class.php => PlainCommand.class.php} (92%) rename file/lib/system/chat/command/commands/{Restore.class.php => RestoreCommand.class.php} (95%) rename file/lib/system/chat/command/commands/{Temproom.class.php => TemproomCommand.class.php} (96%) rename file/lib/system/chat/command/commands/{Where.class.php => WhereCommand.class.php} (94%) diff --git a/file/lib/system/chat/command/CommandHandler.class.php b/file/lib/system/chat/command/CommandHandler.class.php index d192407..24ef3d4 100644 --- a/file/lib/system/chat/command/CommandHandler.class.php +++ b/file/lib/system/chat/command/CommandHandler.class.php @@ -63,7 +63,7 @@ public function loadCommand() { return new commands\Plain($this); } - $class = '\wcf\system\chat\command\commands\\'.ucfirst(strtolower($parts[0])); + $class = '\wcf\system\chat\command\commands\\'.ucfirst(strtolower($parts[0])).'Command'; if (!class_exists($class)) { throw new NotFoundException(); } diff --git a/file/lib/system/chat/command/commands/Away.class.php b/file/lib/system/chat/command/commands/AwayCommand.class.php similarity index 94% rename from file/lib/system/chat/command/commands/Away.class.php rename to file/lib/system/chat/command/commands/AwayCommand.class.php index 229990b..95ac18b 100644 --- a/file/lib/system/chat/command/commands/Away.class.php +++ b/file/lib/system/chat/command/commands/AwayCommand.class.php @@ -11,7 +11,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Away extends \wcf\system\chat\command\AbstractCommand { +class AwayCommand extends \wcf\system\chat\command\AbstractCommand { public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) { parent::__construct($commandHandler); diff --git a/file/lib/system/chat/command/commands/Color.class.php b/file/lib/system/chat/command/commands/ColorCommand.class.php similarity index 97% rename from file/lib/system/chat/command/commands/Color.class.php rename to file/lib/system/chat/command/commands/ColorCommand.class.php index fbb3339..0479b3e 100644 --- a/file/lib/system/chat/command/commands/Color.class.php +++ b/file/lib/system/chat/command/commands/ColorCommand.class.php @@ -11,7 +11,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Color extends \wcf\system\chat\command\AbstractCommand { +class ColorCommand extends \wcf\system\chat\command\AbstractCommand { public static $colors = array( 'red' => 0xFF0000, 'blue' => 0x0000FF, diff --git a/file/lib/system/chat/command/commands/Free.class.php b/file/lib/system/chat/command/commands/FreeCommand.class.php similarity index 96% rename from file/lib/system/chat/command/commands/Free.class.php rename to file/lib/system/chat/command/commands/FreeCommand.class.php index 0f23e50..392cca7 100644 --- a/file/lib/system/chat/command/commands/Free.class.php +++ b/file/lib/system/chat/command/commands/FreeCommand.class.php @@ -10,7 +10,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Free extends Me { +class FreeCommand extends Me { public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) { parent::__construct($commandHandler); diff --git a/file/lib/system/chat/command/commands/Info.class.php b/file/lib/system/chat/command/commands/InfoCommand.class.php similarity index 97% rename from file/lib/system/chat/command/commands/Info.class.php rename to file/lib/system/chat/command/commands/InfoCommand.class.php index 85157d6..d45e03e 100644 --- a/file/lib/system/chat/command/commands/Info.class.php +++ b/file/lib/system/chat/command/commands/InfoCommand.class.php @@ -14,7 +14,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Info extends \wcf\system\chat\command\AbstractCommand { +class InfoCommand extends \wcf\system\chat\command\AbstractCommand { public $enableHTML = 1; public $lines = array(); public $user = null; diff --git a/file/lib/system/chat/command/commands/Me.class.php b/file/lib/system/chat/command/commands/MeCommand.class.php similarity index 93% rename from file/lib/system/chat/command/commands/Me.class.php rename to file/lib/system/chat/command/commands/MeCommand.class.php index b32e008..8c003d3 100644 --- a/file/lib/system/chat/command/commands/Me.class.php +++ b/file/lib/system/chat/command/commands/MeCommand.class.php @@ -11,7 +11,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Me extends \wcf\system\chat\command\AbstractCommand { +class MeCommand extends \wcf\system\chat\command\AbstractCommand { public $enableSmilies = \wcf\system\chat\command\ICommand::SMILEY_USER; public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) { diff --git a/file/lib/system/chat/command/commands/Plain.class.php b/file/lib/system/chat/command/commands/PlainCommand.class.php similarity index 92% rename from file/lib/system/chat/command/commands/Plain.class.php rename to file/lib/system/chat/command/commands/PlainCommand.class.php index d2b4079..8e94a33 100644 --- a/file/lib/system/chat/command/commands/Plain.class.php +++ b/file/lib/system/chat/command/commands/PlainCommand.class.php @@ -10,7 +10,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Plain extends \wcf\system\chat\command\AbstractCommand { +class PlainCommand extends \wcf\system\chat\command\AbstractCommand { public $enableSmilies = \wcf\system\chat\command\ICommand::SMILEY_USER; /** diff --git a/file/lib/system/chat/command/commands/Restore.class.php b/file/lib/system/chat/command/commands/RestoreCommand.class.php similarity index 95% rename from file/lib/system/chat/command/commands/Restore.class.php rename to file/lib/system/chat/command/commands/RestoreCommand.class.php index d66d3a2..d3ba018 100644 --- a/file/lib/system/chat/command/commands/Restore.class.php +++ b/file/lib/system/chat/command/commands/RestoreCommand.class.php @@ -12,7 +12,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Restore extends \wcf\system\chat\command\AbstractRestrictedCommand { +class RestoreCommand extends \wcf\system\chat\command\AbstractRestrictedCommand { public $enableHTML = 1; public $user = null; public $link = ''; diff --git a/file/lib/system/chat/command/commands/Temproom.class.php b/file/lib/system/chat/command/commands/TemproomCommand.class.php similarity index 96% rename from file/lib/system/chat/command/commands/Temproom.class.php rename to file/lib/system/chat/command/commands/TemproomCommand.class.php index 511d696..da9be17 100644 --- a/file/lib/system/chat/command/commands/Temproom.class.php +++ b/file/lib/system/chat/command/commands/TemproomCommand.class.php @@ -12,7 +12,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Temproom extends \wcf\system\chat\command\AbstractRestrictedCommand { +class TemproomCommand extends \wcf\system\chat\command\AbstractRestrictedCommand { public $roomName = ''; public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) { diff --git a/file/lib/system/chat/command/commands/Where.class.php b/file/lib/system/chat/command/commands/WhereCommand.class.php similarity index 94% rename from file/lib/system/chat/command/commands/Where.class.php rename to file/lib/system/chat/command/commands/WhereCommand.class.php index 12cac7a..a30404f 100644 --- a/file/lib/system/chat/command/commands/Where.class.php +++ b/file/lib/system/chat/command/commands/WhereCommand.class.php @@ -10,7 +10,7 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command.commands */ -class Where extends \wcf\system\chat\command\AbstractCommand { +class WhereCommand extends \wcf\system\chat\command\AbstractCommand { public $enableHTML = 1; /**