Merge branch 'master' into develop
This commit is contained in:
commit
19a78f63f4
@ -226,13 +226,6 @@ class BaseXMPP(XMLStream):
|
|||||||
- The send queue processor
|
- The send queue processor
|
||||||
- The scheduler
|
- The scheduler
|
||||||
"""
|
"""
|
||||||
if 'xep_0115' in self.plugin:
|
|
||||||
name = 'xep_0115'
|
|
||||||
if not hasattr(self.plugin[name], 'post_inited'):
|
|
||||||
if hasattr(self.plugin[name], 'post_init'):
|
|
||||||
self.plugin[name].post_init()
|
|
||||||
self.plugin[name].post_inited = True
|
|
||||||
|
|
||||||
for name in self.plugin:
|
for name in self.plugin:
|
||||||
if not hasattr(self.plugin[name], 'post_inited'):
|
if not hasattr(self.plugin[name], 'post_inited'):
|
||||||
if hasattr(self.plugin[name], 'post_init'):
|
if hasattr(self.plugin[name], 'post_init'):
|
||||||
|
@ -52,4 +52,5 @@ class XEP_0085(BasePlugin):
|
|||||||
def _handle_chat_state(self, msg):
|
def _handle_chat_state(self, msg):
|
||||||
state = msg['chat_state']
|
state = msg['chat_state']
|
||||||
log.debug("Chat State: %s, %s", state, msg['from'].jid)
|
log.debug("Chat State: %s, %s", state, msg['from'].jid)
|
||||||
|
self.xmpp.event('chatstate', msg)
|
||||||
self.xmpp.event('chatstate_%s' % state, msg)
|
self.xmpp.event('chatstate_%s' % state, msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user