diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-07 20:57:20 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-07 20:57:20 +0200 |
commit | 220816dc8a0eaaa8f41c4d86430ac468687f31f1 (patch) | |
tree | 59dfa54bf20048ea6f8473e9844171518a82842b | |
parent | fdc0d5f9b40a050fd66dab32774af6f8456292aa (diff) | |
download | prosody-220816dc8a0eaaa8f41c4d86430ac468687f31f1.tar.gz prosody-220816dc8a0eaaa8f41c4d86430ac468687f31f1.zip |
mod_groups: Log a warning about invalid JIDs (#1180)
-rw-r--r-- | plugins/mod_groups.lua | 2 |
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 |