# HG changeset patch # User Emmanuel Gil Peyrot # Date 1505841443 -7200 # Node ID 8b5d846dc66424e56abc28229cd3a5c9dc1d0f08 # Parent bbd18b61729690b5a881d0c7bada80250ea93033 rostermanager: Remove self-contact entry (fixes #933) diff -r bbd18b617296 -r 8b5d846dc664 core/rostermanager.lua --- a/core/rostermanager.lua Tue Sep 19 19:17:07 2017 +0200 +++ b/core/rostermanager.lua Tue Sep 19 19:17:23 2017 +0200 @@ -115,7 +115,8 @@ 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 });