Comparison

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
comparison
equal deleted inserted replaced
4311:d6366294f618 4312:bcdff2b1d3ec
32 if groups[group_name][jid] then 32 if groups[group_name][jid] then
33 roster[jid].name = groups[group_name][jid]; 33 roster[jid].name = groups[group_name][jid];
34 end 34 end
35 if not roster[jid].groups then 35 if not roster[jid].groups then
36 roster[jid].groups = { [group_name] = true }; 36 roster[jid].groups = { [group_name] = true };
37 roster[jid].persist = false;
37 end 38 end
38 roster[jid].groups[group_name] = true; 39 roster[jid].groups[group_name] = true;
39 roster[jid].persist = false;
40 end 40 end
41 end 41 end
42 end 42 end
43 43
44 -- Find groups this JID is a member of 44 -- Find groups this JID is a member of