# HG changeset patch # User Matthew Wild # Date 1487859237 0 # Node ID a9eb4d5566f3610db8de5d7845e887e21279467c # Parent 19bb4606013f1353741a219b44c99d283a092819 mod_firewall: Add TO FULL JID diff -r 19bb4606013f -r a9eb4d5566f3 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Thu Feb 23 14:11:31 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Thu Feb 23 14:13:57 2017 +0000 @@ -267,6 +267,10 @@ return "not not session.directed[from]", { "from" }; end +function condition_handlers.TO_FULL_JID() + return "not not full_sessions[to]", { "to" }; +end + -- CHECK LIST: spammers contains $<@from> function condition_handlers.CHECK_LIST(list_condition) local list_name, expr = list_condition:match("(%S+) contains (.+)$");