diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-07-15 11:43:23 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-07-15 11:43:23 +0100 |
commit | 94a868c6a57a25282b154912166047642c4a7a9c (patch) | |
tree | e24069ba5abcb41a0498819a72e7407f4ac38711 /plugins/mod_groups.lua | |
parent | 2a86e85a20da4563ed1e6bca08504fb88ffc66a6 (diff) | |
download | prosody-94a868c6a57a25282b154912166047642c4a7a9c.tar.gz prosody-94a868c6a57a25282b154912166047642c4a7a9c.zip |
rostermanager, mod_groups: Change roster-load event to pass an event table for consistency
Diffstat (limited to 'plugins/mod_groups.lua')
-rw-r--r-- | plugins/mod_groups.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_groups.lua b/plugins/mod_groups.lua index f7f632c2..dc6976d4 100644 --- a/plugins/mod_groups.lua +++ b/plugins/mod_groups.lua @@ -17,11 +17,13 @@ local jid_prep = jid.prep; local module_host = module:get_host(); -function inject_roster_contacts(username, host, roster) +function inject_roster_contacts(event) + local username, host= event.username, event.host; --module:log("debug", "Injecting group members to roster"); local bare_jid = username.."@"..host; if not members[bare_jid] and not members[false] then return; end -- Not a member of any groups + local roster = event.roster; local function import_jids_to_roster(group_name) for jid in pairs(groups[group_name]) do -- Add them to roster |