diff -r 15a446307993 -r 4456a0dfc647 netserver/HWProto.hs --- a/netserver/HWProto.hs Fri Jan 02 19:54:23 2009 +0000 +++ b/netserver/HWProto.hs Fri Jan 02 20:01:02 2009 +0000 @@ -82,7 +82,7 @@ (answerClientOnly ["TEAM_COLOR", teamname team, teamcolor team]) ++ (answerClientOnly ["HH_NUM", teamname team, show $ hhnum team]) -answerServerMessage clients = [\serverInfo -> (clientOnly, "SERVER_MESSAGE" : +answerServerMessage client clients = [\serverInfo -> (clientOnly, "SERVER_MESSAGE" : [(mainbody serverInfo) ++ clientsIn ++ (lastHour serverInfo)])] where mainbody serverInfo = serverMessage serverInfo ++ @@ -91,7 +91,7 @@ else "
Private server
" - clientsIn = "" ++ (show $ length nicks) ++ " clients in: " ++ clientslist ++ "
" + clientsIn = if protocol client < 20 then "" ++ (show $ length nicks) ++ " clients in: " ++ clientslist ++ "
" else [] clientslist = if not $ null nicks then foldr1 (\a b -> a ++ ", " ++ b) nicks else "" lastHour serverInfo = if isDedicated serverInfo then @@ -175,7 +175,7 @@ -- 'noRoom' clients state command handlers handleCmd_noRoom :: CmdHandler handleCmd_noRoom client clients rooms ["LIST"] = - (noChangeClients, noChangeRooms, answerServerMessage clients ++ (answerRoomsList $ concatMap roomInfo $ sameProtoRooms)) + (noChangeClients, noChangeRooms, answerServerMessage client clients ++ (answerRoomsList $ concatMap roomInfo $ sameProtoRooms)) where roomInfo room = [ name room,