aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_groups.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_groups.lua')
-rw-r--r--plugins/mod_groups.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_groups.lua b/plugins/mod_groups.lua
index 90c18fa1..7a876f1d 100644
--- a/plugins/mod_groups.lua
+++ b/plugins/mod_groups.lua
@@ -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