From 7c8a72e89cbd4672b498aef6c3f567794bd9bdb3 Mon Sep 17 00:00:00 2001 From: max-m Date: Sat, 28 Jan 2012 15:23:33 +0100 Subject: [PATCH] Check if the executed command actually is "free the fish". --- file/lib/system/chat/commands/commands/Free.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/file/lib/system/chat/commands/commands/Free.class.php b/file/lib/system/chat/commands/commands/Free.class.php index 941091d..25b19df 100644 --- a/file/lib/system/chat/commands/commands/Free.class.php +++ b/file/lib/system/chat/commands/commands/Free.class.php @@ -17,6 +17,9 @@ class Free extends Me { * @see \wcf\system\chat\commands\ICommand::getMessage() */ public function getMessage() { - return 'freed the fish. OH A NOEZ'; + if (\wcf\util\StringUtil::toLowerCase($this->commandHandler->getParameters()) == 'the fish') + return 'freed the fish. OH A NOEZ'; + else + throw new \wcf\system\chat\commands\NotFoundException(); } }