# HG changeset patch # User Matthew Wild # Date 1274877480 -3600 # Node ID f2d1079a758d02d7a5ce1ddc2512b936c70ff1f2 # Parent 0f21abc745ef46d37ab9c2d20e2e19750c30990c mod_groups: Check for existence of roster[false] before clearing version (thanks Flo) diff -r 0f21abc745ef -r f2d1079a758d plugins/mod_groups.lua --- a/plugins/mod_groups.lua Mon May 24 19:44:27 2010 +0100 +++ b/plugins/mod_groups.lua Wed May 26 13:38:00 2010 +0100 @@ -67,7 +67,9 @@ 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