diff options
author | joe <joe@jerkface.net> | 2014-03-06 02:30:58 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-03-06 02:30:58 -0500 |
commit | d35c2a82fa274c45ab1b2383405d3490656de3af (patch) | |
tree | fc055a30c7d9597979364ee8e6167dbe1fe23655 | |
parent | 52efeff2233c896b87effcec8641e695c7120607 (diff) |
Oops, fixed namespaces on Offline notifications
-rw-r--r-- | xmppServer.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmppServer.hs b/xmppServer.hs index 699c6a7a..63420076 100644 --- a/xmppServer.hs +++ b/xmppServer.hs | |||
@@ -296,7 +296,7 @@ eofConn state k = do | |||
296 | atomically $ modifyTVar' (keyToChan state) $ Map.delete k | 296 | atomically $ modifyTVar' (keyToChan state) $ Map.delete k |
297 | case k of | 297 | case k of |
298 | ClientKey {} -> do | 298 | ClientKey {} -> do |
299 | stanza <- makePresenceStanza "{jabber:server}" Nothing Offline | 299 | stanza <- makePresenceStanza "jabber:server" Nothing Offline |
300 | informClientPresence state k stanza | 300 | informClientPresence state k stanza |
301 | PeerKey {} -> do | 301 | PeerKey {} -> do |
302 | let h = peerKeyToText k | 302 | let h = peerKeyToText k |
@@ -308,7 +308,7 @@ eofConn state k = do | |||
308 | r <- Map.keys (resources rp) | 308 | r <- Map.keys (resources rp) |
309 | return $ unsplitJID (Just u, h, Just r) | 309 | return $ unsplitJID (Just u, h, Just r) |
310 | forM_ jids $ \jid -> do | 310 | forM_ jids $ \jid -> do |
311 | stanza <- makePresenceStanza "{jabber:client}" (Just jid) Offline | 311 | stanza <- makePresenceStanza "jabber:client" (Just jid) Offline |
312 | informPeerPresence state k stanza | 312 | informPeerPresence state k stanza |
313 | 313 | ||
314 | {- | 314 | {- |
@@ -548,7 +548,7 @@ answerProbe state k stanza chan = do | |||
548 | -- if no presence, send offline message | 548 | -- if no presence, send offline message |
549 | when (null replies) $ do | 549 | when (null replies) $ do |
550 | let jid = unsplitJID (Just u,ch,Nothing) | 550 | let jid = unsplitJID (Just u,ch,Nothing) |
551 | pstanza <- makePresenceStanza "{jabber:server}" (Just jid) Offline | 551 | pstanza <- makePresenceStanza "jabber:server" (Just jid) Offline |
552 | atomically $ writeTChan (connChan conn) pstanza | 552 | atomically $ writeTChan (connChan conn) pstanza |
553 | 553 | ||
554 | main = runResourceT $ do | 554 | main = runResourceT $ do |