diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-09-19 19:17:23 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-09-19 19:17:23 +0200 |
commit | 67e92afe782fc6ce3711b7c3aca7acc613d6f2a3 (patch) | |
tree | 2f3755f5965d3cc09d07d432a3f76bd085baea84 | |
parent | 519ef501d24ebe62477916816d782d6a8ad437f6 (diff) | |
download | prosody-67e92afe782fc6ce3711b7c3aca7acc613d6f2a3.tar.gz prosody-67e92afe782fc6ce3711b7c3aca7acc613d6f2a3.zip |
rostermanager: Remove self-contact entry (fixes #933)
-rw-r--r-- | core/rostermanager.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua index 04f97f22..ac5104c3 100644 --- a/core/rostermanager.lua +++ b/core/rostermanager.lua @@ -115,7 +115,8 @@ local function load_roster(username, host) roster_metadata(roster, err); if roster[jid] then roster[jid] = nil; - log("warn", "roster for %s has a self-contact", jid); + log("warn", "roster for %s had a self-contact, removing", jid); + roster_store:set(username, roster); end if not err then hosts[host].events.fire_event("roster-load", { username = username, host = host, roster = roster }); |