gameServer/HWProtoInRoomState.hs
changeset 9787 0da6ba2f1f93
parent 9770 5706b637bae2
child 9950 2759212a27de
child 9995 8bf092ddc536
--- a/gameServer/HWProtoInRoomState.hs	Fri Dec 13 00:00:49 2013 +0400
+++ b/gameServer/HWProtoInRoomState.hs	Fri Dec 13 00:16:02 2013 +0400
@@ -378,6 +378,10 @@
     cl <- thisClient
     return [ModifyRoom (\r -> r{isSpecial = False}) | isAdministrator cl]
 
+handleCmd_inRoom ["GREETING", msg] = do
+    cl <- thisClient
+    rm <- thisRoom
+    return [ModifyRoom (\r -> r{greeting = msg}) | isAdministrator cl || (isMaster cl && (not $ isSpecial rm))]
 
 handleCmd_inRoom ["LIST"] = return [] -- for old clients (<= 0.9.17)