summaryrefslogtreecommitdiff
path: root/Presence/XMPP.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Presence/XMPP.hs')
-rw-r--r--Presence/XMPP.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Presence/XMPP.hs b/Presence/XMPP.hs
index c81ed8c7..fd29473e 100644
--- a/Presence/XMPP.hs
+++ b/Presence/XMPP.hs
@@ -249,6 +249,9 @@ handleIQSetBind session cmdChan stanza_id = do
249 setResource session (L.fromChunks [S.encodeUtf8 rsc]) 249 setResource session (L.fromChunks [S.encodeUtf8 rsc])
250 jid <- getJID session 250 jid <- getJID session
251 atomically $ writeTChan cmdChan (Send $ iq_bind_reply stanza_id (toStrict $ L.decodeUtf8 $ L.show jid) ) 251 atomically $ writeTChan cmdChan (Send $ iq_bind_reply stanza_id (toStrict $ L.decodeUtf8 $ L.show jid) )
252 forCachedPresence session $ \presence -> do
253 xs <- xmlifyPresenceForClient presence
254 atomically . writeTChan cmdChan . Send $ xs
252 _ -> unhandledBind 255 _ -> unhandledBind
253 256
254 257