From 1e23167ce4e3af1a24a08b46d666047744368692 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 10 Jan 2021 15:01:14 +0100 Subject: XEP-0045: Better "groupchat_presence" targeting (do not make EVERY SINGLE presence go through the 0045 handler) --- slixmpp/plugins/xep_0045/muc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0045/muc.py b/slixmpp/plugins/xep_0045/muc.py index 03d01dba..810bc51e 100644 --- a/slixmpp/plugins/xep_0045/muc.py +++ b/slixmpp/plugins/xep_0045/muc.py @@ -88,7 +88,7 @@ class XEP_0045(BasePlugin): self.xmpp.register_handler( Callback( 'MUCPresence', - MatchXMLMask("" % self.xmpp.default_ns), + StanzaPath("presence/muc"), self.handle_groupchat_presence, )) self.xmpp.register_handler( -- cgit v1.2.3