aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_groups.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_groups.lua')
-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;