aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-22 14:36:53 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-22 14:36:53 +0000
commitc3a993d0ada1de7131b880aba84ea60a03b50873 (patch)
tree90bfd1b2524b7b27ba7e4ddc7a55005a147b9d91 /plugins
parent24a8ca2e010f368e469d5a3c542aa3e69f5bef25 (diff)
downloadprosody-c3a993d0ada1de7131b880aba84ea60a03b50873.tar.gz
prosody-c3a993d0ada1de7131b880aba84ea60a03b50873.zip
mod_groups: Ignore whitespace on group member JID lines (thanks Luis!)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_groups.lua2
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;