Software /
code /
prosody-modules
Changeset
2416:ade918cd9ca7
mod_firewall: Only call rostermanager if username is available (fixes #796)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 13 Dec 2016 22:08:02 +0100 |
parents | 2415:07d7036040ee |
children | 2417:5e7badecf7fe |
files | mod_firewall/mod_firewall.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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" }; }; };