Reset nickname so it may be reused while old connection is still hanging
authorunc0rr
Tue, 09 Oct 2012 21:08:37 +0400
changeset 7735 4c7e282b5732
parent 7734 b0d8a595875b
child 7736 1cf84a84ef43
Reset nickname so it may be reused while old connection is still hanging
gameServer/Actions.hs
--- a/gameServer/Actions.hs	Mon Oct 08 21:56:24 2012 -0400
+++ b/gameServer/Actions.hs	Tue Oct 09 21:08:37 2012 +0400
@@ -151,7 +151,7 @@
     mapM processAction
         [
         AnswerClients [chan] ["BYE", msg]
-        , ModifyClient (\c -> c{logonPassed = False}) -- this will effectively hide client from others while he isn't deleted from list
+        , ModifyClient (\c -> c{nick = "", logonPassed = False}) -- this will effectively hide client from others while he isn't deleted from list
         ]
 
     s <- get