From 220816dc8a0eaaa8f41c4d86430ac468687f31f1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 7 Jul 2018 20:57:20 +0200 Subject: mod_groups: Log a warning about invalid JIDs (#1180) --- plugins/mod_groups.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/mod_groups.lua') 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 -- cgit v1.2.3