improved mc quit handling

This commit is contained in:
Steffen Schröder committed 2014-06-20 16:34:19 +02:00
1 parent f4681da6c5
commit 51e2fde2b0
2 files changed
+16 -7

No files matched your search

+2 -2
View File
@@ -233,9 +233,9 @@ class ServerCommands implements CallbackListener, CommandListener, ManialinkPage
*
* @param string $login
*/
private function shutdownServer($login = '#') {
private function shutdownServer($login = '-') {
$this->maniaControl->log("Server shutdown requested by '{$login}'!");
$this->maniaControl->client->stopServer();
$this->maniaControl->quit("Server shutdown requested by '{$login}'");
}
/**