From 2c4c816b24deb99bfd562e0727f9c26e78428db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 5 Apr 2012 16:50:08 +0300 Subject: [PATCH] Commands can now be written in any case. --- file/lib/system/chat/command/CommandHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/system/chat/command/CommandHandler.class.php b/file/lib/system/chat/command/CommandHandler.class.php index 4dda64a..270f703 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($parts[0]); + $class = '\wcf\system\chat\command\commands\\'.ucfirst(strtolower($parts[0])); if (!class_exists($class)) { throw new NotFoundException(); }