Backout bcdff2b1d3ec from 0.8 - going to commit a slightly cleaner patch for the...
authorMatthew Wild <mwild1@gmail.com>
Tue, 7 Jun 2011 00:29:02 +0000 (01:29 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 7 Jun 2011 00:29:02 +0000 (01:29 +0100)
plugins/mod_groups.lua

index 90c18fa1c0514c0bc224220b03eca0dac9999311..7a876f1d6845a67f4e69f57d4564cdd73e086176 100644 (file)
@@ -34,9 +34,9 @@ function inject_roster_contacts(username, host, roster)
                                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