--- 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"]