From cd1e04cd8a7a98f7d19036de1907434faced93eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 23 Apr 2013 16:40:46 +0200 Subject: [PATCH] Fix useless override --- file/lib/system/command/commands/ColorCommand.class.php | 1 + file/lib/system/command/commands/MuteCommand.class.php | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/file/lib/system/command/commands/ColorCommand.class.php b/file/lib/system/command/commands/ColorCommand.class.php index bec0839..ea99325 100644 --- a/file/lib/system/command/commands/ColorCommand.class.php +++ b/file/lib/system/command/commands/ColorCommand.class.php @@ -38,6 +38,7 @@ class ColorCommand extends \chat\system\command\AbstractCommand { public function __construct(\chat\system\command\CommandHandler $commandHandler) { parent::__construct($commandHandler); + try { list($color[1], $color[2]) = explode(' ', $commandHandler->getParameters()); } diff --git a/file/lib/system/command/commands/MuteCommand.class.php b/file/lib/system/command/commands/MuteCommand.class.php index 7afecc5..857cfa9 100644 --- a/file/lib/system/command/commands/MuteCommand.class.php +++ b/file/lib/system/command/commands/MuteCommand.class.php @@ -79,13 +79,6 @@ public function checkPermission() { if (!$ph->getPermission($this->room, 'mod.can'.str_replace(array('chat\system\command\commands\\', 'Command'), '', get_class($this)))) throw new \wcf\system\exception\PermissionDeniedException(); } - /** - * @see chat\system\command\ICommand::getReceiver() - */ - public function getReceiver() { - return parent::getReceiver(); - } - /** * @see \chat\system\command\ICommand::getType() */