gameServer/HWProtoLobbyState.hs
changeset 5426 109e9b5761c2
parent 5209 f7a610e2ef5f
child 5573 cc409ee3ad2e
--- a/gameServer/HWProtoLobbyState.hs	Wed Jul 20 00:09:13 2011 +0200
+++ b/gameServer/HWProtoLobbyState.hs	Sat Jul 23 09:30:51 2011 +0400
@@ -154,6 +154,16 @@
     cl <- thisClient
     banId <- clientByNick banNick
     return [BanClient 60 reason (fromJust banId) | isAdministrator cl && isJust banId && fromJust banId /= ci]
+    
+handleCmd_lobby ["BANIP", ip, reason, duration] = do
+    (ci, _) <- ask
+    cl <- thisClient
+    return [BanIP ip (readInt_ duration) reason | isAdministrator cl]
+    
+handleCmd_lobby ["BANLIST"] = do
+    (ci, _) <- ask
+    cl <- thisClient
+    return [BanList | isAdministrator cl]
 
 
 handleCmd_lobby ["SET_SERVER_VAR", "MOTD_NEW", newMessage] = do