From fc36de9fa038c40ddfcfb1e3d1c35f0602c1df9c Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Thu, 30 May 2019 18:07:47 +0200 Subject: [PATCH] fix antiFlood timing and name --- addons/antiFlood.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/antiFlood.sh b/addons/antiFlood.sh index a4c9ee3..d9bc9d0 100644 --- a/addons/antiFlood.sh +++ b/addons/antiFlood.sh @@ -27,7 +27,7 @@ export BASHBOT_EVENT_TEXT BASHBOT_EVENT_CMD BASHBOT_EVENT_FILE BASHBOT_EVENT_TIMER # any global variable defined by addons MUST be prefixed by addon name -ANTIFL_ME="antiflood" +ANTIFL_ME="antiFlood" declare -Ax ANTIFL_CHATS ANTIFL_ACTUALS @@ -67,8 +67,7 @@ if [[ "$1" = "start"* ]]; then } # register to timer - #BASHBOT_EVENT_TIMER["${ANTIFL_ME}","${ANTIFL_BAN}"]="antiflood_timer" - BASHBOT_EVENT_TIMER["${ANTIFL_ME}","1"]="antiflood_timer" + BASHBOT_EVENT_TIMER["${ANTIFL_ME}","${ANTIFL_BAN}"]="antiflood_timer" # save settings and reset flood level every BAN Min antiflood_timer(){