Fix carbons
This commit is contained in:
parent
6476cfcde5
commit
22664ee7b8
@ -61,9 +61,11 @@ class XEP_0280(BasePlugin):
|
|||||||
self.xmpp.plugin['xep_0030'].add_feature('urn:xmpp:carbons:2')
|
self.xmpp.plugin['xep_0030'].add_feature('urn:xmpp:carbons:2')
|
||||||
|
|
||||||
def _handle_carbon_received(self, msg):
|
def _handle_carbon_received(self, msg):
|
||||||
|
if msg['from'].bare == self.xmpp.boundjid.bare:
|
||||||
self.xmpp.event('carbon_received', msg)
|
self.xmpp.event('carbon_received', msg)
|
||||||
|
|
||||||
def _handle_carbon_sent(self, msg):
|
def _handle_carbon_sent(self, msg):
|
||||||
|
if msg['from'].bare == self.xmpp.boundjid.bare:
|
||||||
self.xmpp.event('carbon_sent', msg)
|
self.xmpp.event('carbon_sent', msg)
|
||||||
|
|
||||||
def enable(self, ifrom=None, timeout=None, callback=None,
|
def enable(self, ifrom=None, timeout=None, callback=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user