diff options
Diffstat (limited to 'core/rostermanager.lua')
-rw-r--r-- | core/rostermanager.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua index ddff841e..54c97083 100644 --- a/core/rostermanager.lua +++ b/core/rostermanager.lua @@ -89,6 +89,7 @@ function load_roster(username, host) log("debug", "load_roster: loading for new user: "..username.."@"..host); roster = datamanager.load(username, host, "roster") or {}; if not roster[false] then roster[false] = { }; end + roster[username.."@"..host] = nil; hosts[host].sessions[username].roster = roster; hosts[host].events.fire_event("roster-load", username, host, roster); end @@ -98,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 {}; + roster[username.."@"..host] = nil; hosts[host].events.fire_event("roster-load", username, host, roster); return roster; end |