# HG changeset patch # User Kim Alvefur # Date 1602003467 -7200 # Node ID a38e6a8a781a4e8203c2aed5bde5b8d2ed6d30be # Parent 0016618e09751b430f6609f3b208c84ce6bd89d5 mod_muc_moderation: Improve error message to be more helpful diff -r 0016618e0975 -r a38e6a8a781a mod_muc_moderation/mod_muc_moderation.lua --- a/mod_muc_moderation/mod_muc_moderation.lua Tue Oct 06 16:07:43 2020 +0100 +++ b/mod_muc_moderation/mod_muc_moderation.lua Tue Oct 06 18:57:47 2020 +0200 @@ -57,7 +57,7 @@ local affiliation = room:get_affiliation(actor); local role = room:get_role(actor_nick) or room:get_default_role(affiliation); if valid_roles[role or "none"] < valid_roles.moderator then - origin.send(st.error_reply(stanza, "auth", "forbidden", "Insufficient privileges")); + origin.send(st.error_reply(stanza, "auth", "forbidden", "You need a role of at least 'moderator'")); return true; end