netserver/Miscutils.hs
changeset 1591 1db9b654f880
parent 1578 f02806f66e00
child 1598 c853e02ed663
--- a/netserver/Miscutils.hs	Tue Jan 06 17:37:18 2009 +0000
+++ b/netserver/Miscutils.hs	Tue Jan 06 17:51:39 2009 +0000
@@ -126,6 +126,9 @@
 sameRoom :: HandlesSelector
 sameRoom client clients rooms = filter (\ci -> room ci == room client) clients
 
+sameProtoLobbyClients :: HandlesSelector
+sameProtoLobbyClients client clients rooms = filter (\ci -> room ci == [] && protocol ci == protocol client) clients
+
 noRoomSameProto :: HandlesSelector
 noRoomSameProto client clients _ = filter (null . room) $ filter (\ci -> protocol client == protocol ci) clients