summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Presence/XMPPServer.hs7
-rw-r--r--xmppServer.hs1
2 files changed, 8 insertions, 0 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs
index 4dda1f70..3d4120fa 100644
--- a/Presence/XMPPServer.hs
+++ b/Presence/XMPPServer.hs
@@ -200,6 +200,13 @@ enableClientHacks "Pidgin" version replyto = do
200 (InternalEnableHack SimulatedChatErrors) 200 (InternalEnableHack SimulatedChatErrors)
201 [] 201 []
202 replyto 202 replyto
203enableClientHacks "irssi-xmpp" version replyto = do
204 wlog "Enabling hack SimulatedChatErrors for client irssi-xmpp"
205 donevar <- atomically newEmptyTMVar
206 sendReply donevar
207 (InternalEnableHack SimulatedChatErrors)
208 []
209 replyto
203enableClientHacks _ _ _ = return () 210enableClientHacks _ _ _ = return ()
204 211
205cacheMessageId id' replyto = do 212cacheMessageId id' replyto = do
diff --git a/xmppServer.hs b/xmppServer.hs
index 35d18e92..2476daec 100644
--- a/xmppServer.hs
+++ b/xmppServer.hs
@@ -405,6 +405,7 @@ rewriteJIDForPeer jid = do
405 to' = unsplitJID (n,h',r) 405 to' = unsplitJID (n,h',r)
406 in (to',addr) 406 in (to',addr)
407 407
408-- | deliver <message/> or error stanza
408deliverMessage state fail msg = 409deliverMessage state fail msg =
409 case stanzaOrigin msg of 410 case stanzaOrigin msg of
410 NetworkOrigin senderk@(ClientKey {}) _ -> do 411 NetworkOrigin senderk@(ClientKey {}) _ -> do