diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-05-26 13:38:00 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-05-26 13:38:00 +0100 |
commit | fb63a1dd606d5e837e1503377becd5244909fdd6 (patch) | |
tree | 73263a584d55c34a20b8a9dba49f42fa23e40ea5 | |
parent | a48703aa3b3006d66c7e0e685fa13fc6723c936d (diff) | |
download | prosody-fb63a1dd606d5e837e1503377becd5244909fdd6.tar.gz prosody-fb63a1dd606d5e837e1503377becd5244909fdd6.zip |
mod_groups: Check for existence of roster[false] before clearing version (thanks Flo)
-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 de7b8302..5f821cbc 100644 --- a/plugins/mod_groups.lua +++ b/plugins/mod_groups.lua @@ -67,7 +67,9 @@ function remove_virtual_contacts(username, host, datastore, data) new_roster[jid] = contact; end end - new_roster[false].version = nil; -- Version is void + if new_roster[false] then + new_roster[false].version = nil; -- Version is void + end return username, host, datastore, new_roster; end |