gameServer/Actions.hs
changeset 9032 2345f5f96a29
parent 8983 a25e18295959
child 9035 e84d42a4311c
--- a/gameServer/Actions.hs	Tue May 21 23:31:39 2013 +0400
+++ b/gameServer/Actions.hs	Tue May 21 23:48:00 2013 +0400
@@ -381,7 +381,7 @@
         if p < 38 then
             processAction $ ByeClient $ loc "Nickname is already in use"
             else
-            processAction $ NoticeMessage NickAlreadyInUse
+            mapM_ processAction [NoticeMessage NickAlreadyInUse, ModifyClient $ \c -> c{nick = B.empty}]
         else
         do
         db <- gets (dbQueries . serverInfo)