summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-10 15:01:14 +0100
committermathieui <mathieui@mathieui.net>2021-01-10 15:07:48 +0100
commit1e23167ce4e3af1a24a08b46d666047744368692 (patch)
treee5e09b63867c0ec499f2234243891ec8fd604336
parentcccc1253aa12f62a6cf8403ee54facf656521504 (diff)
downloadslixmpp-1e23167ce4e3af1a24a08b46d666047744368692.tar.gz
slixmpp-1e23167ce4e3af1a24a08b46d666047744368692.tar.bz2
slixmpp-1e23167ce4e3af1a24a08b46d666047744368692.tar.xz
slixmpp-1e23167ce4e3af1a24a08b46d666047744368692.zip
XEP-0045: Better "groupchat_presence" targeting
(do not make EVERY SINGLE presence go through the 0045 handler)
-rw-r--r--slixmpp/plugins/xep_0045/muc.py2
1 files changed, 1 insertions, 1 deletions
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("<presence xmlns='%s' />" % self.xmpp.default_ns),
+ StanzaPath("presence/muc"),
self.handle_groupchat_presence,
))
self.xmpp.register_handler(