XEP-0045: Better "groupchat_presence" targeting

(do not make EVERY SINGLE presence go through the 0045 handler)
This commit is contained in:
mathieui 2021-01-10 15:01:14 +01:00
parent cccc1253aa
commit 1e23167ce4

View file

@ -88,7 +88,7 @@ class XEP_0045(BasePlugin):
self.xmpp.register_handler(
Callback(
'MUCPresence',
MatchXMLMask("<presence xmlns='%s' />" % self.xmpp.default_ns),
StanzaPath("presence/muc"),
self.handle_groupchat_presence,
))
self.xmpp.register_handler(