Don't screw with nick list message
authorunc0rr
Thu, 08 Jan 2009 18:00:20 +0000
changeset 1609 eff63adf62a3
parent 1608 2631f5026714
child 1610 d52f62c9fc09
Don't screw with nick list message
netserver/HWProto.hs
--- a/netserver/HWProto.hs	Thu Jan 08 15:56:14 2009 +0000
+++ b/netserver/HWProto.hs	Thu Jan 08 18:00:20 2009 +0000
@@ -173,7 +173,7 @@
 	if (null $ nick client) || (protocol client == 0) then
 		[]
 	else
-		(answerClientOnly $ ["LOBBY:JOINED"] ++ (map nick $ clients)) ++
+		(answerClientOnly $ ["LOBBY:JOINED"] ++ (filter (not . null) $ map nick $ clients)) ++
 		(answerOthersRoom ["LOBBY:JOINED", nick client]) ++
 		(answerServerMessage client clients)