mod_groups: Persist changes to mod_groups contacts (e.g. moving groups)
authorChristian Haase <c.haase@ifu.com>
Sun, 5 Jun 2011 11:18:24 +0000 (12:18 +0100)
committerChristian Haase <c.haase@ifu.com>
Sun, 5 Jun 2011 11:18:24 +0000 (12:18 +0100)
plugins/mod_groups.lua

index 7a876f1d6845a67f4e69f57d4564cdd73e086176..90c18fa1c0514c0bc224220b03eca0dac9999311 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