aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-09-19 19:17:23 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-09-19 19:17:23 +0200
commite2a3d500049d4b7616388bf6f6cf94a51283a459 (patch)
tree2f3755f5965d3cc09d07d432a3f76bd085baea84
parentccc4e2a83f81a07ef522a271738a34c75c2a4752 (diff)
downloadprosody-e2a3d500049d4b7616388bf6f6cf94a51283a459.tar.gz
prosody-e2a3d500049d4b7616388bf6f6cf94a51283a459.zip
rostermanager: Remove self-contact entry (fixes #933)
-rw-r--r--core/rostermanager.lua3
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 });