aboutsummaryrefslogtreecommitdiffstats
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
commit3820952675423068a69572b9c6fffde4c094acef (patch)
treee6652c302fc45831f78dfc38635c91431ca359d4
parent4923e7f87fd5d1a8ad077ffa1c28c664280af9b2 (diff)
downloadprosody-3820952675423068a69572b9c6fffde4c094acef.tar.gz
prosody-3820952675423068a69572b9c6fffde4c094acef.zip
mod_register_limits: Fix typo error name (fix #1539 p2) (thanks Ge0rG)
Probably because autocomplete.
-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