summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-01-28 00:01:51 +0100
committermathieui <mathieui@mathieui.net>2017-01-28 00:02:27 +0100
commit22664ee7b86c8e010f312b66d12590fb47160ad8 (patch)
tree45941f28513c19c71f50d8d0644c8adacc054add
parent6476cfcde58ed9b3e2abcf6eac70b1998ae1ec08 (diff)
downloadslixmpp-22664ee7b86c8e010f312b66d12590fb47160ad8.tar.gz
slixmpp-22664ee7b86c8e010f312b66d12590fb47160ad8.tar.bz2
slixmpp-22664ee7b86c8e010f312b66d12590fb47160ad8.tar.xz
slixmpp-22664ee7b86c8e010f312b66d12590fb47160ad8.zip
Fix carbons
-rw-r--r--slixmpp/plugins/xep_0280/carbons.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0280/carbons.py b/slixmpp/plugins/xep_0280/carbons.py
index 261238b7..aa71f7f1 100644
--- a/slixmpp/plugins/xep_0280/carbons.py
+++ b/slixmpp/plugins/xep_0280/carbons.py
@@ -61,10 +61,12 @@ class XEP_0280(BasePlugin):
self.xmpp.plugin['xep_0030'].add_feature('urn:xmpp:carbons:2')
def _handle_carbon_received(self, msg):
- self.xmpp.event('carbon_received', msg)
+ if msg['from'].bare == self.xmpp.boundjid.bare:
+ self.xmpp.event('carbon_received', msg)
def _handle_carbon_sent(self, msg):
- self.xmpp.event('carbon_sent', msg)
+ if msg['from'].bare == self.xmpp.boundjid.bare:
+ self.xmpp.event('carbon_sent', msg)
def enable(self, ifrom=None, timeout=None, callback=None,
timeout_callback=None):