Software /
code /
prosody
Changeset
3090:f14d2962f32c
rostermanager: Don't fire roster-load event if there was an error loading the roster
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 22 May 2010 12:20:22 +0100 |
parents | 3089:69fb1cb6b551 |
children | 3091:d6a059af2077 |
files | core/rostermanager.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/rostermanager.lua Sat May 22 05:53:27 2010 +0500 +++ b/core/rostermanager.lua Sat May 22 12:20:22 2010 +0100 @@ -101,7 +101,9 @@ roster[jid] = nil; log("warn", "roster for "..jid.." has a self-contact"); end - hosts[host].events.fire_event("roster-load", username, host, roster); + if not err then + hosts[host].events.fire_event("roster-load", username, host, roster); + end return roster, err; end