gameServer/HWProtoNEState.hs
changeset 1879 bb114339eb4e
parent 1847 2178c0fc838c
child 2150 45b695f3a7b9
equal deleted inserted replaced
1878:b3b277d2b891 1879:bb114339eb4e
    39 	where
    39 	where
    40 		client = clients IntMap.! clID
    40 		client = clients IntMap.! clID
    41 		parsedProto = fromMaybe 0 (maybeRead protoNum :: Maybe Word16)
    41 		parsedProto = fromMaybe 0 (maybeRead protoNum :: Maybe Word16)
    42 		checkPassword = if (not . null) (nick client) then [CheckRegistered] else []
    42 		checkPassword = if (not . null) (nick client) then [CheckRegistered] else []
    43 
    43 
       
    44 
    44 handleCmd_NotEntered clID clients _ ["PASSWORD", passwd] =
    45 handleCmd_NotEntered clID clients _ ["PASSWORD", passwd] =
    45 	if passwd == webPassword client then
    46 	if passwd == webPassword client then
    46 		[ModifyClient (\cl -> cl{logonPassed = True}),
    47 		[ModifyClient (\cl -> cl{logonPassed = True}),
    47 		MoveToLobby] ++ adminNotice
    48 		MoveToLobby] ++ adminNotice
    48 	else
    49 	else