Diff

plugins/mod_groups.lua @ 4312:bcdff2b1d3ec

mod_groups: Persist changes to mod_groups contacts (e.g. moving groups)
author Christian Haase <c.haase@ifu.com>
date Sun, 05 Jun 2011 12:18:24 +0100
parent 3168:20c851616ade
child 4315:51706d2b9f77
line wrap: on
line diff
--- a/plugins/mod_groups.lua	Fri Mar 04 20:27:57 2011 +0000
+++ b/plugins/mod_groups.lua	Sun Jun 05 12:18:24 2011 +0100
@@ -34,9 +34,9 @@
 				end
 				if not roster[jid].groups then
 					roster[jid].groups = { [group_name] = true };
+					roster[jid].persist = false;
 				end
 				roster[jid].groups[group_name] = true;
-				roster[jid].persist = false;
 			end
 		end
 	end