XEP-0045: add a directed event for self-presence
This commit is contained in:
parent
7932a03378
commit
eda692d1c6
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@ class XEP_0045(BasePlugin):
|
|||
self.rooms[entry['room']][entry['nick']] = entry
|
||||
log.debug("MUC presence from %s/%s : %s", entry['room'],entry['nick'], entry)
|
||||
self.xmpp.event("groupchat_presence", pr)
|
||||
if 110 in pr['muc']['status_codes']:
|
||||
self.xmpp.event("muc::%s::self-presence" % entry['room'], pr)
|
||||
self.xmpp.event("muc::%s::presence" % entry['room'], pr)
|
||||
if got_offline:
|
||||
self.xmpp.event("muc::%s::got_offline" % entry['room'], pr)
|
||||
|
|
Loading…
Reference in a new issue