aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-09-29 16:22:05 +0200
committerKim Alvefur <zash@zash.se>2019-09-29 16:22:05 +0200
commitcf99479744b47139f6329680d17e01faafb1524b (patch)
treed5ae976b5c00b81d8ffda580032aaa971162df37
parent21cbe37ca6791b24be7098c5b1ea02171f2579cc (diff)
downloadprosody-cf99479744b47139f6329680d17e01faafb1524b.tar.gz
prosody-cf99479744b47139f6329680d17e01faafb1524b.zip
mod_register_ibr: Reminder to maybe use util.error in the future
-rw-r--r--plugins/mod_register_ibr.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_register_ibr.lua b/plugins/mod_register_ibr.lua
index fe5ede2b..3f6da004 100644
--- a/plugins/mod_register_ibr.lua
+++ b/plugins/mod_register_ibr.lua
@@ -168,6 +168,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event)
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