Mon, 22 Mar 2010 14:36:53 +0000
mod_groups: Ignore whitespace on group member JID lines (thanks Luis!)
plugins/mod_groups.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_groups.lua Mon Mar 22 14:35:02 2010 +0000 +++ b/plugins/mod_groups.lua Mon Mar 22 14:36:53 2010 +0000 @@ -98,7 +98,7 @@ 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;