changeset 5534 | 8226ac08484e |
parent 5006 | 84997bc3f92e |
child 5538 | 7b4e0c3642bf |
--- a/mod_firewall/conditions.lib.lua Thu Jun 08 11:25:40 2023 +0100 +++ b/mod_firewall/conditions.lib.lua Thu Jun 08 11:28:06 2023 +0100 @@ -67,6 +67,10 @@ return compile_jid_match("from", from), { "split_from" }; end +function condition_handlers.FROM_FULL_JID() + return compile_jid_match_part("from_resource", nil), { "split_from" }; +end + function condition_handlers.FROM_EXACTLY(from) local metadeps = {}; return ("from == %s"):format(metaq(from, metadeps)), { "from", unpack(metadeps) };