diff options
-rw-r--r-- | core/rostermanager.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua index a8eb806c..a3315245 100644 --- a/core/rostermanager.lua +++ b/core/rostermanager.lua @@ -101,7 +101,9 @@ function load_roster(username, host) 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 |