--- a/mod_firewall/conditions.lib.lua Thu Feb 23 14:06:48 2017 +0000
+++ b/mod_firewall/conditions.lib.lua Thu Feb 23 14:11:31 2017 +0000
@@ -263,10 +263,8 @@
return ("not not session.firewall_marked_"..idsafe(name));
end
-function condition_handlers.SENT_DIRECTED_PRESENCE_TO_SENDER(jid)
- local meta_deps = {};
- jid = meta(("%q"):format(jid), meta_deps);
- return "not not session.directed[jid]", meta_deps;
+function condition_handlers.SENT_DIRECTED_PRESENCE_TO_SENDER()
+ return "not not session.directed[from]", { "from" };
end
-- CHECK LIST: spammers contains $<@from>