# HG changeset patch # User Kim Alvefur # Date 1518764075 -3600 # Node ID 6f289283feb17c3a902de2bda4c901d10633ad56 # Parent 824b0d7fa8836c0006e77730b4c7b45162e52013 mod_firewall: Prevent traceback if no directed presence has been sent (fixes #1081) diff -r 824b0d7fa883 -r 6f289283feb1 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Fri Feb 16 04:36:41 2018 +0100 +++ b/mod_firewall/conditions.lib.lua Fri Feb 16 07:54:35 2018 +0100 @@ -277,7 +277,7 @@ end function condition_handlers.SENT_DIRECTED_PRESENCE_TO_SENDER() - return "not not session.directed[from]", { "from" }; + return "not not (session.directed and session.directed[from])", { "from" }; end -- TO FULL JID?