netserver/Miscutils.hs
changeset 1484 c01512115c12
parent 1478 8bfb417d165e
child 1491 0b1f44751509
--- a/netserver/Miscutils.hs	Fri Nov 07 22:03:43 2008 +0000
+++ b/netserver/Miscutils.hs	Sat Nov 08 11:54:46 2008 +0000
@@ -90,6 +90,9 @@
 sameRoom :: HandlesSelector
 sameRoom client clients rooms = map handle $ filter (\ci -> room ci == room client) clients
 
+noRoomSameProto :: HandlesSelector
+noRoomSameProto client clients _ = map handle $ filter (null . room) $ filter (\ci -> protocol client == protocol ci) clients
+
 othersInRoom :: HandlesSelector
 othersInRoom client clients rooms = map handle $ filter (client /=) $ filter (\ci -> room ci == room client) clients