mod_groups: Log a warning about invalid JIDs (#1180)

This commit is contained in:
Kim Alvefur 2018-07-07 20:57:20 +02:00
parent fbec700e42
commit 81da3564dc

View file

@ -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