Comparison

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
comparison
equal deleted inserted replaced
4314:1e1110840965 4315:51706d2b9f77
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;
38 end 37 end
39 roster[jid].groups[group_name] = true; 38 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