addons/antiFlood finished

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-05-30 20:09:41 +02:00
parent 501b308532
commit e80b98ac85

View File

@ -99,8 +99,10 @@ if [[ "$1" = "start"* ]]; then
fi fi
# check user flood picture # check user flood picture
# shellcheck disable=SC2154 # shellcheck disable=SC2154
[ "$1" = "file" ] && (( ANTIFL_ACTUALS["${CHAT[ID]}","${USER[ID]}","file"]++ )) if [ "$1" = "file" ]; then
antiFlood_action & # do actions in subshell (( ANTIFL_ACTUALS["${CHAT[ID]}","${USER[ID]}","file"]++ ))
antiFlood_action & # do actions in subshell
fi
} }
# check and handle actions # check and handle actions