# HG changeset patch # User Matthew Wild # Date 1487929903 0 # Node ID 240985f7d1f7d7d6cd02ec00bb42143d5a86b81a # Parent 2f1e25706f81cee216240d47b74da715a174651a mod_firewall: SUBSCRIBED: Only check roster if 'to' address has a nodepart (fixes traceback) diff -r 2f1e25706f81 -r 240985f7d1f7 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Fri Feb 24 09:50:49 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Fri Feb 24 09:51:43 2017 +0000 @@ -114,7 +114,7 @@ end function condition_handlers.SUBSCRIBED() - return "rostermanager.is_contact_subscribed(to_node, to_host, bare_from)", + return "(to_node and rostermanager.is_contact_subscribed(to_node, to_host, bare_from))", { "rostermanager", "split_to", "bare_from" }; end