diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-22 14:36:53 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-22 14:36:53 +0000 |
commit | c3a993d0ada1de7131b880aba84ea60a03b50873 (patch) | |
tree | 90bfd1b2524b7b27ba7e4ddc7a55005a147b9d91 | |
parent | 24a8ca2e010f368e469d5a3c542aa3e69f5bef25 (diff) | |
download | prosody-c3a993d0ada1de7131b880aba84ea60a03b50873.tar.gz prosody-c3a993d0ada1de7131b880aba84ea60a03b50873.zip |
mod_groups: Ignore whitespace on group member JID lines (thanks Luis!)
-rw-r--r-- | plugins/mod_groups.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_groups.lua b/plugins/mod_groups.lua index 69a4dcdc..3301269e 100644 --- a/plugins/mod_groups.lua +++ b/plugins/mod_groups.lua @@ -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; |