# HG changeset patch # User Kim Alvefur # Date 1481663282 -3600 # Node ID ade918cd9ca74335103764a3597761910d86ef29 # Parent 07d7036040eef65e8d3d9845323515280bdbcb57 mod_firewall: Only call rostermanager if username is available (fixes #796) diff -r 07d7036040ee -r ade918cd9ca7 mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Tue Dec 13 16:57:16 2016 +0100 +++ b/mod_firewall/mod_firewall.lua Tue Dec 13 22:08:02 2016 +0100 @@ -141,7 +141,7 @@ global_code = [[local rostermanager = require "core.rostermanager";]]; }; roster_entry = { - local_code = [[local roster_entry = (rostermanager.load_roster(to_node, to_host) or {})[bare_from];]]; + local_code = [[local roster_entry = (to_node and rostermanager.load_roster(to_node, to_host) or {})[bare_from];]]; depends = { "rostermanager", "split_to", "bare_from" }; }; };