gameServer/HWProtoLobbyState.hs
changeset 4914 5c33bb53c1e5
parent 4909 dc6482438674
child 4917 8ff92bdc9f98
--- a/gameServer/HWProtoLobbyState.hs	Thu Feb 03 07:00:38 2011 +0100
+++ b/gameServer/HWProtoLobbyState.hs	Thu Feb 03 22:29:10 2011 +0300
@@ -171,5 +171,9 @@
     cl <- thisClient
     return [ClearAccountsCache | isAdministrator cl]
 
+handleCmd_lobby ["RESTART_SERVER", restartType] = do
+    cl <- thisClient
+    return [RestartServer f | let f = restartType == "FORCE", isAdministrator cl]
+
 
 handleCmd_lobby _ = return [ProtocolError "Incorrect command (state: in lobby)"]