Diff

plugins/mod_register_ibr.lua @ 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
parent 10286:23b26a414d71
child 10290:b2ce3300f26a
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