diff options
Diffstat (limited to 'xmppServer.hs')
-rw-r--r-- | xmppServer.hs | 6 |
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 |