Software /
code /
prosody
Comparison
core/rostermanager.lua @ 5747:23076ee191d3
rostermanager, mod_groups: Change roster-load event to pass an event table for consistency
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 15 Jul 2013 11:43:23 +0100 |
parent | 5429:25333de6e7c7 |
child | 5776:bd0ff8ae98a8 |
comparison
equal
deleted
inserted
replaced
5746:3137751751b4 | 5747:23076ee191d3 |
---|---|
98 if roster[jid] then | 98 if roster[jid] then |
99 roster[jid] = nil; | 99 roster[jid] = nil; |
100 log("warn", "roster for %s has a self-contact", jid); | 100 log("warn", "roster for %s has a self-contact", jid); |
101 end | 101 end |
102 if not err then | 102 if not err then |
103 hosts[host].events.fire_event("roster-load", username, host, roster); | 103 hosts[host].events.fire_event("roster-load", { username = username, host = host, roster = roster }); |
104 end | 104 end |
105 return roster, err; | 105 return roster, err; |
106 end | 106 end |
107 | 107 |
108 function save_roster(username, host, roster) | 108 function save_roster(username, host, roster) |