aboutsummaryrefslogtreecommitdiffstats
path: root/core/rostermanager.lua
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
commit67e92afe782fc6ce3711b7c3aca7acc613d6f2a3 (patch)
tree2f3755f5965d3cc09d07d432a3f76bd085baea84 /core/rostermanager.lua
parent519ef501d24ebe62477916816d782d6a8ad437f6 (diff)
downloadprosody-67e92afe782fc6ce3711b7c3aca7acc613d6f2a3.tar.gz
prosody-67e92afe782fc6ce3711b7c3aca7acc613d6f2a3.zip
rostermanager: Remove self-contact entry (fixes #933)
Diffstat (limited to 'core/rostermanager.lua')
-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 });