aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_register_limits.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-23 19:00:48 +0200
committerKim Alvefur <zash@zash.se>2020-04-23 19:00:48 +0200
commited34a5f4764715ddd4362f40d856ece4ec1f17f2 (patch)
treee6652c302fc45831f78dfc38635c91431ca359d4 /plugins/mod_register_limits.lua
parent77efec64cd4ea8e5ac11492e355610d56f1a7cf8 (diff)
downloadprosody-ed34a5f4764715ddd4362f40d856ece4ec1f17f2.tar.gz
prosody-ed34a5f4764715ddd4362f40d856ece4ec1f17f2.zip
mod_register_limits: Fix typo error name (fix #1539 p2) (thanks Ge0rG)
Probably because autocomplete.
Diffstat (limited to 'plugins/mod_register_limits.lua')
-rw-r--r--plugins/mod_register_limits.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register_limits.lua b/plugins/mod_register_limits.lua
index 7a504b32..0fe6a98a 100644
--- a/plugins/mod_register_limits.lua
+++ b/plugins/mod_register_limits.lua
@@ -91,7 +91,7 @@ module:hook("user-registering", function (event)
if not check_throttle(ip) then
log("debug", "Registrations over limit for ip %s", ip or "?");
event.allowed = false;
- event.error = errors.new("throttle", event, err_registry);
+ event.error = errors.new("throttled", event, err_registry);
end
end
if event.error then