aboutsummaryrefslogtreecommitdiffstats
path: root/core/rostermanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/rostermanager.lua')
-rw-r--r--core/rostermanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
index 54c97083..b415c21c 100644
--- a/core/rostermanager.lua
+++ b/core/rostermanager.lua
@@ -99,6 +99,7 @@ function load_roster(username, host)
-- Attempt to load roster for non-loaded user
log("debug", "load_roster: loading for offline user: "..username.."@"..host);
roster = datamanager.load(username, host, "roster") or {};
+ if not roster[false] then roster[false] = { }; end
roster[username.."@"..host] = nil;
hosts[host].events.fire_event("roster-load", username, host, roster);
return roster;