gameServer/HWProtoNEState.hs
branchserver_refactor
changeset 4575 4eb51a884f11
parent 4337 85e02b1a8e8f
child 4577 2c43cd7d5ce6
--- a/gameServer/HWProtoNEState.hs	Mon Jan 10 18:14:05 2011 +0300
+++ b/gameServer/HWProtoNEState.hs	Mon Jan 10 18:28:39 2011 +0300
@@ -29,7 +29,7 @@
                     AnswerClients [sendChan cl] ["NICK", newNick] :
                     [CheckRegistered | clientProto cl /= 0]
     where
-    haveSameNick irnc clNick = isJust $ find (\cl -> newNick == clNick) $ map (client irnc) $ allClients irnc
+    haveSameNick irnc clNick = isJust $ find (\cl -> newNick == cl) $ map (nick . client irnc) $ allClients irnc
 
 handleCmd_NotEntered ["PROTO", protoNum] = do
     (ci, irnc) <- ask