Software /
code /
prosody
Diff
plugins/mod_groups.lua @ 2913:3d4e814cadfa
mod_groups: Ignore whitespace on group member JID lines (thanks Luis!)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Mar 2010 14:36:53 +0000 |
parent | 2912:f5a5317f3485 |
child | 2925:692b3c6c5bd2 |
line wrap: on
line diff
--- 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;