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

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2011-05-21 00:36:10 +0400
committerYann Leboulanger <asterix@lagaule.org>2011-05-21 00:36:10 +0400
commit8896e33d65a12c41c1046678c157796353f50fe4 (patch)
tree7319a1aadd39d876bb1018ba0ad05f1695113e30 /src/message_control.py
parent03312a521d3c672b9c4d01af5c427e0e00052cd3 (diff)
send message to the correct jid
Diffstat (limited to 'src/message_control.py')
-rw-r--r--src/message_control.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/message_control.py b/src/message_control.py
index 14efb42da..d265e5768 100644
--- a/src/message_control.py
+++ b/src/message_control.py
@@ -224,8 +224,9 @@ class MessageControl(object):
# Doesn't return None if error
if obj.account != self.account:
return
+ if self.contact.jid != obj.jid:
+ return
- obj.jid = self.contact.jid
obj.message = helpers.remove_invalid_xml_chars(obj.message)
obj.original_message = obj.message