Software /
code /
prosody
Diff
plugins/mod_groups.lua @ 8991:37ebcc7c6768
mod_groups: Log a warning about invalid JIDs (#1180)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 07 Jul 2018 20:57:20 +0200 |
parent | 7129:e4c886946ecb |
child | 8992:972b6f793ff9 |
line wrap: on
line diff
--- a/plugins/mod_groups.lua Thu Jun 28 10:56:24 2018 +0200 +++ b/plugins/mod_groups.lua Sat Jul 07 20:57:20 2018 +0200 @@ -112,6 +112,8 @@ 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