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
commit213edf5203123371b0a9fe0efe3606ec6f9575c2 (patch)
treed5ae976b5c00b81d8ffda580032aaa971162df37
parent1fa149d6c4c0e709d62999f044f28cbb0eff4040 (diff)
downloadprosody-213edf5203123371b0a9fe0efe3606ec6f9575c2.tar.gz
prosody-213edf5203123371b0a9fe0efe3606ec6f9575c2.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