mod_firewall: SUBSCRIBED: Only check roster if 'to' address has a nodepart (fixes traceback)
--- 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