summaryrefslogtreecommitdiff
path: root/Presence
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-03-11 13:35:27 -0400
committerjoe <joe@jerkface.net>2014-03-11 13:35:27 -0400
commitf7388f8cb19535585d35e1457985152c8ac0ddf8 (patch)
tree0e6ca70b362f788bdeee194c30880c397c4f6db7 /Presence
parente3ca24c0fd13547b978513a3a434463adbaf71f9 (diff)
Fixed To address on pongs to client
Diffstat (limited to 'Presence')
-rw-r--r--Presence/XMPPServer.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs
index bfaaa751..6f834c25 100644
--- a/Presence/XMPPServer.hs
+++ b/Presence/XMPPServer.hs
@@ -839,7 +839,6 @@ xmppInbound sv xmpp k laddr pingflag stanzas output donevar = doNestingXML $ do
839 , xmppTellPeerHisName xmpp k 839 , xmppTellPeerHisName xmpp k
840 ) 840 )
841 me <- liftIO tellmyname 841 me <- liftIO tellmyname
842 you <- liftIO tellyourname
843 withXML $ \begindoc -> do 842 withXML $ \begindoc -> do
844 when (begindoc==EventBeginDocument) $ do 843 when (begindoc==EventBeginDocument) $ do
845 whenJust nextElement $ \xml -> do 844 whenJust nextElement $ \xml -> do
@@ -872,6 +871,7 @@ xmppInbound sv xmpp k laddr pingflag stanzas output donevar = doNestingXML $ do
872 , stanzaOrigin = NetworkOrigin k output 871 , stanzaOrigin = NetworkOrigin k output
873 } 872 }
874 ioWriteChan stanzas s 873 ioWriteChan stanzas s
874 you <- liftIO tellyourname
875 flip (maybe $ unrecog) dispatch $ \dispatch -> 875 flip (maybe $ unrecog) dispatch $ \dispatch ->
876 case dispatch of 876 case dispatch of
877 -- Checking that the to-address matches this server. 877 -- Checking that the to-address matches this server.