summaryrefslogtreecommitdiff
path: root/xmppServer.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-03-15 19:50:37 -0400
committerjoe <joe@jerkface.net>2014-03-15 19:50:37 -0400
commit246ef43e0b7ecb143a042d9909b1b85640d55bf9 (patch)
tree79b7e053e2647e5f94ad9d386bedb8a743bd467d /xmppServer.hs
parent93a512dce45f2517d3e991bc8be075ca6ff5fc1b (diff)
fixed probe-replies to include utmp presence
Diffstat (limited to 'xmppServer.hs')
-rw-r--r--xmppServer.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmppServer.hs b/xmppServer.hs
index efd790d0..ef71380b 100644
--- a/xmppServer.hs
+++ b/xmppServer.hs
@@ -604,8 +604,10 @@ answerProbe state mto k chan = do
604 604
605 replies <- runTraversableT $ do 605 replies <- runTraversableT $ do
606 cbu <- lift . atomically $ readTVar (clientsByUser state) 606 cbu <- lift . atomically $ readTVar (clientsByUser state)
607 lpres <- liftMaybe $ Map.lookup u cbu 607 let lpres = maybeToList $ Map.lookup u cbu
608 clientState <- liftT $ Map.elems (networkClients lpres) 608 cw <- lift . atomically $ readTVar (cwClients $ consoleWriter state)
609 clientState <- liftT $ (lpres >>= Map.elems . networkClients)
610 ++ Map.elems cw
609 stanza <- liftIOMaybe $ atomically (readTVar (clientStatus clientState)) 611 stanza <- liftIOMaybe $ atomically (readTVar (clientStatus clientState))
610 stanza <- lift $ cloneStanza stanza 612 stanza <- lift $ cloneStanza stanza
611 let jid = unsplitJID (Just $ clientUser clientState 613 let jid = unsplitJID (Just $ clientUser clientState