Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
apply fix for Issue #442
Browse files Browse the repository at this point in the history
  • Loading branch information
bear committed Mar 23, 2017
1 parent bb094cc commit 8c66e51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sleekxmpp/plugins/xep_0280/carbons.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ def session_bind(self, jid):
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, block=True, timeout=None, callback=None):
iq = self.xmpp.Iq()
Expand Down
4 changes: 2 additions & 2 deletions sleekxmpp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# We don't want to have to import the entire library
# just to get the version info for setup.py

__version__ = '1.4.0'
__version_info__ = (1, 4, 0, '', 0)
__version__ = '1.3.2'
__version_info__ = (1, 3, 2, '', 0)

0 comments on commit 8c66e51

Please sign in to comment.