# HG changeset patch # User Kim Alvefur # Date 1569766925 -7200 # Node ID a1c0395a59ae3660e997deabecdfdcb899a536da # Parent 23b26a414d710b1b847fbcf96b1e913c82f6cdcd mod_register_ibr: Reminder to maybe use util.error in the future diff -r 23b26a414d71 -r a1c0395a59ae plugins/mod_register_ibr.lua --- a/plugins/mod_register_ibr.lua Sun Sep 29 15:26:18 2019 +0200 +++ b/plugins/mod_register_ibr.lua Sun Sep 29 16:22:05 2019 +0200 @@ -168,6 +168,7 @@ module:fire_event("user-registering", user); if not user.allowed then log("debug", "Registration disallowed by module: %s", user.reason or "no reason given"); + -- TODO This could use util.error session.send(st.error_reply(stanza, user.error_type or "modify", user.error_condition or "not-acceptable", user.reason)); return true; end