aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-07 20:57:20 +0200
committerKim Alvefur <zash@zash.se>2018-07-07 20:57:20 +0200
commit2d69652b5b41d4edc3d63bf0e1b72bb27887554d (patch)
tree59dfa54bf20048ea6f8473e9844171518a82842b /plugins
parent1f1c577bbc5617c86582c8ac40b27e253f93d02d (diff)
downloadprosody-2d69652b5b41d4edc3d63bf0e1b72bb27887554d.tar.gz
prosody-2d69652b5b41d4edc3d63bf0e1b72bb27887554d.zip
mod_groups: Log a warning about invalid JIDs (#1180)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_groups.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_groups.lua b/plugins/mod_groups.lua
index d696d453..71a5271a 100644
--- a/plugins/mod_groups.lua
+++ b/plugins/mod_groups.lua
@@ -112,6 +112,8 @@ function module.load()
groups[curr_group][jid] = name or false;
members[jid] = members[jid] or {};
members[jid][#members[jid]+1] = curr_group;
+ elseif entryjid:match("%S") then
+ module:log("warn", "Invalid JID: %q", entryjid);
end
end
end