# HG changeset patch # User Kim Alvefur # Date 1701645799 -3600 # Node ID bb4335c8f5007931ee53e2f8da520cc07668b44e # Parent 62654f523c6a2b232323c59884ea10d666eefbbd mod_restrict_xmpp: Allow all XEP-0199 pings to self No permission to send a ping without a 'to' attribute? diff -r 62654f523c6a -r bb4335c8f500 mod_restrict_xmpp/mod_restrict_xmpp.lua --- a/mod_restrict_xmpp/mod_restrict_xmpp.lua Mon Dec 04 00:08:27 2023 +0100 +++ b/mod_restrict_xmpp/mod_restrict_xmpp.lua Mon Dec 04 00:23:19 2023 +0100 @@ -78,6 +78,7 @@ local payload = stanza.tags[1]; local ns = payload and payload.attr.xmlns; + if ns == "urn:xmpp:ping" then return end local proto = iq_namespaces[ns]; if proto == "pep" then local pubsub = payload:get_child("pubsub", "http://jabber.org/protocol/pubsub");