gameServer/Actions.hs
changeset 5214 d2ad737891b0
parent 5212 eaffb02f0053
child 5426 109e9b5761c2
--- a/gameServer/Actions.hs	Tue May 17 19:05:13 2011 -0400
+++ b/gameServer/Actions.hs	Sun May 22 19:44:53 2011 +0400
@@ -381,7 +381,12 @@
 
 processAction (KickClient kickId) = do
     modify (\s -> s{clientIndex = Just kickId})
-    processAction $ ByeClient "Kicked"
+    clHost <- client's host
+    currentTime <- io getCurrentTime
+    mapM_ processAction [
+        AddIP2Bans clHost "60 seconds cooldown after kick" (addUTCTime 60 currentTime),
+        ByeClient "Kicked"
+        ]
 
 
 processAction (BanClient seconds reason banId) = do