mod_groups: Check for existence of roster[false] before clearing version (thanks Flo)

Wed, 26 May 2010 13:38:00 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 26 May 2010 13:38:00 +0100
changeset 3125
f2d1079a758d
parent 3123
0f21abc745ef
child 3126
9095eb464260
child 3149
5aca2f01c0f9

mod_groups: Check for existence of roster[false] before clearing version (thanks Flo)

plugins/mod_groups.lua file | annotate | diff | comparison | revisions
--- 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
 

mercurial