gameServer/HWProtoLobbyState.hs
changeset 1925 ec923e56c444
parent 1905 b1ec8db513f2
child 2126 cb249fa8e3da
--- a/gameServer/HWProtoLobbyState.hs	Fri Mar 27 14:02:27 2009 +0000
+++ b/gameServer/HWProtoLobbyState.hs	Fri Mar 27 15:58:54 2009 +0000
@@ -137,4 +137,13 @@
 		client = clients IntMap.! clID
 
 
+handleCmd_lobby clID clients rooms ["SET_SERVER_MESSAGE", newMessage] =
+	if not $ isAdministrator client then
+		[]
+	else
+		[ModifyServerInfo (\si -> si{serverMessage = newMessage})]
+	where
+		client = clients IntMap.! clID
+
+
 handleCmd_lobby clID _ _ _ = [ProtocolError "Incorrect command (state: in lobby)"]