Changeset

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
parents 8947:f12cc1d7aa65
children 8992:972b6f793ff9 8998:6bddc90eeb27
files plugins/mod_groups.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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