Diff

plugins/mod_groups.lua @ 4315:51706d2b9f77

Backout bcdff2b1d3ec from 0.8 - going to commit a slightly cleaner patch for the same issue to trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Jun 2011 01:29:02 +0100
parent 4312:bcdff2b1d3ec
child 5373:9e6d6cdf0449
line wrap: on
line diff
--- a/plugins/mod_groups.lua	Mon Jun 06 22:51:33 2011 +0100
+++ b/plugins/mod_groups.lua	Tue Jun 07 01:29:02 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