Mercurial > prosody-hg
comparison plugins/mod_groups.lua @ 3125:f2d1079a758d
mod_groups: Check for existence of roster[false] before clearing version (thanks Flo)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 26 May 2010 13:38:00 +0100 |
| parents | 05b45b1281aa |
| children | 20c851616ade |
comparison
equal
deleted
inserted
replaced
| 3123:0f21abc745ef | 3125:f2d1079a758d |
|---|---|
| 65 for jid, contact in pairs(data) do | 65 for jid, contact in pairs(data) do |
| 66 if contact.persist ~= false then | 66 if contact.persist ~= false then |
| 67 new_roster[jid] = contact; | 67 new_roster[jid] = contact; |
| 68 end | 68 end |
| 69 end | 69 end |
| 70 new_roster[false].version = nil; -- Version is void | 70 if new_roster[false] then |
| 71 new_roster[false].version = nil; -- Version is void | |
| 72 end | |
| 71 return username, host, datastore, new_roster; | 73 return username, host, datastore, new_roster; |
| 72 end | 74 end |
| 73 | 75 |
| 74 return username, host, datastore, data; | 76 return username, host, datastore, data; |
| 75 end | 77 end |
