comparison mod_restrict_federation/mod_restrict_federation.lua @ 6547:cfcd2d2f7119

mod_restrict_federation: Fix attribute check
author Matthew Wild <mwild1@gmail.com>
date Sun, 24 May 2026 18:42:43 +0100
parents 981c14bb8975
children
comparison
equal deleted inserted replaced
6546:8a4e6421fd24 6547:cfcd2d2f7119
24 end 24 end
25 local payload = stanza.tags[1]; 25 local payload = stanza.tags[1];
26 -- Allow push notification registration 26 -- Allow push notification registration
27 if payload.name == "command" and payload.attr.xmlns == "http://jabber.org/protocol/commands" then 27 if payload.name == "command" and payload.attr.xmlns == "http://jabber.org/protocol/commands" then
28 -- This should allow Tigase and p2 ad-hoc commands to pass through to push gateways 28 -- This should allow Tigase and p2 ad-hoc commands to pass through to push gateways
29 local node = payload.attr.node;
29 if node:match("^register%-") or node:match("^unregister%-") then 30 if node:match("^register%-") or node:match("^unregister%-") then
30 return; 31 return;
31 end 32 end
32 end 33 end
33 end 34 end