diff --git a/build.php b/build.php index 9f0c717..18933f2 100755 --- a/build.php +++ b/build.php @@ -13,6 +13,10 @@ ----------- EOT; + if (file_exists('package.xml.old')) { + file_put_contents('package.xml', file_get_contents('package.xml.old')); + unlink('package.xml.old'); + } if (file_exists('file.tar')) unlink('file.tar'); if (file_exists('template.tar')) unlink('template.tar'); if (file_exists('acptemplate.tar')) unlink('acptemplate.tar'); @@ -84,7 +88,7 @@ echo <<\d{4}-\d{2}-\d{2}~', ''.date('Y-m-d').'', file_get_contents('package.xml'))); + passthru('tar cvf be.bastelstu.wcf.chat.tar * --exclude=*.old --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code); + if (file_exists('package.xml.old')) { + file_put_contents('package.xml', file_get_contents('package.xml.old')); + unlink('package.xml.old'); + } if ($code != 0) exit($code); if (file_exists('file.tar')) unlink('file.tar'); 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(); }