Software /
code /
prosody
Changeset
2912:f5a5317f3485
mod_groups: Fixes to make compatible with roster versioning - set version to 'true' to indicate that the roster is not being versioned
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Mar 2010 14:35:02 +0000 |
parents | 2911:30895e419e92 |
children | 2913:3d4e814cadfa |
files | plugins/mod_groups.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_groups.lua Mon Mar 22 14:33:38 2010 +0000 +++ b/plugins/mod_groups.lua Mon Mar 22 14:35:02 2010 +0000 @@ -53,6 +53,10 @@ import_jids_to_roster(group_name); end end + + if roster[false] then + roster[false].version = true; + end end function remove_virtual_contacts(username, host, datastore, data) @@ -63,6 +67,7 @@ new_roster[jid] = contact; end end + new_roster[false].version = nil; -- Version is void return username, host, datastore, new_roster; end