Comparison

plugins/mod_groups.lua @ 2911:30895e419e92

mod_groups: Missed hunk from last commit, don't create the list of public group members unless necessary
author Matthew Wild <mwild1@gmail.com>
date Mon, 22 Mar 2010 14:33:38 +0000
parent 2910:6706a02df271
child 2912:f5a5317f3485
comparison
equal deleted inserted replaced
2910:6706a02df271 2911:30895e419e92
75 75
76 module:hook("roster-load", inject_roster_contacts); 76 module:hook("roster-load", inject_roster_contacts);
77 datamanager.add_callback(remove_virtual_contacts); 77 datamanager.add_callback(remove_virtual_contacts);
78 78
79 groups = { default = {} }; 79 groups = { default = {} };
80 members = { [false] = {} }; 80 members = { };
81 local curr_group = "default"; 81 local curr_group = "default";
82 for line in io.lines(groups_file) do 82 for line in io.lines(groups_file) do
83 if line:match("^%s*%[.-%]%s*$") then 83 if line:match("^%s*%[.-%]%s*$") then
84 curr_group = line:match("^%s*%[(.-)%]%s*$"); 84 curr_group = line:match("^%s*%[(.-)%]%s*$");
85 if curr_group:match("^%+") then 85 if curr_group:match("^%+") then