mod_groups: Ignore whitespace on group member JID lines (thanks Luis!)

This commit is contained in:
Matthew Wild 2010-03-22 14:36:53 +00:00
parent 24a8ca2e01
commit c3a993d0ad

View file

@ -98,7 +98,7 @@ function module.load()
groups[curr_group] = groups[curr_group] or {};
else
-- Add JID
local jid = jid_prep(line);
local jid = jid_prep(line:match("%S+"));
if jid then
module:log("debug", "New member of %s: %s", tostring(curr_group), tostring(jid));
groups[curr_group][jid] = true;