Changeset

10287:a1c0395a59ae

mod_register_ibr: Reminder to maybe use util.error in the future
author Kim Alvefur <zash@zash.se>
date Sun, 29 Sep 2019 16:22:05 +0200
parents 10286:23b26a414d71
children 10288:f36f7d2c269b
files plugins/mod_register_ibr.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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