Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Jajcus/pyxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Konieczny <jajcus@jajcus.net>2011-08-23 11:58:02 +0400
committerJacek Konieczny <jajcus@jajcus.net>2011-08-23 11:58:02 +0400
commit43e00488a1b7845da37702235c37f692e4f28829 (patch)
treef7071ffa42dc57813fc413e4f406ec2bb70821a4
parent61c27b604d83767c676a92fc44b0b4e84be17cc2 (diff)
Workaround for OpenFire <bind/> reply bug
closes #27
-rw-r--r--pyxmpp/stanzaprocessor.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyxmpp/stanzaprocessor.py b/pyxmpp/stanzaprocessor.py
index 4192307..7a052ff 100644
--- a/pyxmpp/stanzaprocessor.py
+++ b/pyxmpp/stanzaprocessor.py
@@ -264,6 +264,12 @@ class StanzaProcessor:
self.fix_in_stanza(stanza)
to=stanza.get_to()
+ if to and to.node == None and (not self.me
+ or to.domain == self.me.domain):
+ # workaround for OpenFire bug
+ # http://community.igniterealtime.org/thread/35966
+ to = None
+
if not self.process_all_stanzas and to and to!=self.me and to.bare()!=self.me.bare():
return self.route_stanza(stanza)