summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-03-03 15:24:09 -0500
committerjoe <joe@jerkface.net>2014-03-03 15:24:09 -0500
commitacd16575afeee695ead6bc2d93f5849a59a04b5f (patch)
tree9a7344bee79ad68a18b79bb211856a493c24dbd3
parent8b7d614ad7722b426e88ecb536e17b381e23e138 (diff)
cosmetic
-rw-r--r--xmppServer.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmppServer.hs b/xmppServer.hs
index d450988c..b5d54344 100644
--- a/xmppServer.hs
+++ b/xmppServer.hs
@@ -242,9 +242,9 @@ getSolicited' :: Text -> IO [Text]
242getSolicited' = textAdapter ConfigFiles.getSolicited 242getSolicited' = textAdapter ConfigFiles.getSolicited
243 243
244sendProbesAndSolicitations state k laddr chan = do 244sendProbesAndSolicitations state k laddr chan = do
245 cbu <- atomically $ readTVar $ clientsByUser state
246 -- get all buddies & solicited matching k for all users 245 -- get all buddies & solicited matching k for all users
247 runTraversableT $ do 246 runTraversableT $ do
247 cbu <- lift $ atomically $ readTVar $ clientsByUser state
248 user <- liftT $ Map.keys cbu 248 user <- liftT $ Map.keys cbu
249 (isbud,getter) <- liftT [(True ,getBuddies' ) 249 (isbud,getter) <- liftT [(True ,getBuddies' )
250 ,(False,getSolicited')] 250 ,(False,getSolicited')]
@@ -252,7 +252,6 @@ sendProbesAndSolicitations state k laddr chan = do
252 let (u,h,r) = splitJID bud 252 let (u,h,r) = splitJID bud
253 addr <- liftMT $ resolvePeer h 253 addr <- liftMT $ resolvePeer h
254 liftT $ guard (PeerKey addr == k) 254 liftT $ guard (PeerKey addr == k)
255 -- return (isbud,u)
256 let make = if isbud then presenceProbe 255 let make = if isbud then presenceProbe
257 else presenceSolicitation 256 else presenceSolicitation
258 toh = peerKeyToText k 257 toh = peerKeyToText k