Add catch-all chatstate event.
This commit is contained in:
parent
e68b07dbce
commit
c7ec6a72cd
1 changed files with 1 additions and 0 deletions
|
@ -52,4 +52,5 @@ class XEP_0085(BasePlugin):
|
|||
def _handle_chat_state(self, msg):
|
||||
state = msg['chat_state']
|
||||
log.debug("Chat State: %s, %s", state, msg['from'].jid)
|
||||
self.xmpp.event('chatstate', msg)
|
||||
self.xmpp.event('chatstate_%s' % state, msg)
|
||||
|
|
Loading…
Reference in a new issue