Software /
code /
prosody
Diff
core/rostermanager.lua @ 8357:8b5d846dc664
rostermanager: Remove self-contact entry (fixes #933)
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 19 Sep 2017 19:17:23 +0200 |
parent | 8356:bbd18b617296 |
child | 8358:f36ff1e0ff80 |
line wrap: on
line diff
--- 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 });