summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Presence/ConsoleWriter.hs1
-rw-r--r--xmppServer.hs6
2 files changed, 5 insertions, 2 deletions
diff --git a/Presence/ConsoleWriter.hs b/Presence/ConsoleWriter.hs
index 9b62b00f..90849727 100644
--- a/Presence/ConsoleWriter.hs
+++ b/Presence/ConsoleWriter.hs
@@ -5,6 +5,7 @@ module ConsoleWriter
5 , newConsoleWriter 5 , newConsoleWriter
6 , writeActiveTTY 6 , writeActiveTTY
7 , writeAllPty 7 , writeAllPty
8 , cwClients
8 ) where 9 ) where
9 10
10import Control.Monad 11import Control.Monad
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