1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Commands can now be written in any case.

This commit is contained in:
Tim Düsterhus 2012-04-05 16:50:08 +03:00
parent 9d80fcb6e2
commit 2c4c816b24

View File

@ -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();
}