Just better syntax
authorunc0rr
Fri, 07 Nov 2008 17:02:22 +0000
changeset 1482 8af42b3f93d2
parent 1481 f741afa7dbf3
child 1483 89e24edb6020
Just better syntax
netserver/hedgewars-server.hs
--- a/netserver/hedgewars-server.hs	Fri Nov 07 16:42:10 2008 +0000
+++ b/netserver/hedgewars-server.hs	Fri Nov 07 17:02:22 2008 +0000
@@ -113,7 +113,7 @@
 	case r of
 		Accept ci -> do
 			let sameHostClients = filter (\cl -> host ci == host cl) clients
-			let haveJustConnected = not $ null $ filter (\cl -> diffUTCTime (connectTime ci) (connectTime cl) <= 5) sameHostClients
+			let haveJustConnected = not $ null $ filter (\cl -> connectTime ci `diffUTCTime` connectTime cl <= 5) sameHostClients
 			
 			when haveJustConnected $ do
 				atomically $ writeTChan (chan ci) ["QUIT", "Reconnected too fast"]