mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-21 23:25:08 +00:00
mycommnds.sh: fix error403 example
This commit is contained in:
parent
783bf30190
commit
5205fe3990
@ -13,7 +13,7 @@
|
|||||||
# License: WTFPLv2 http://www.wtfpl.net/txt/copying/
|
# License: WTFPLv2 http://www.wtfpl.net/txt/copying/
|
||||||
# Author: KayM (gnadelwartz), kay@rrr.de
|
# Author: KayM (gnadelwartz), kay@rrr.de
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.51-0-g6e66a28
|
#### $$VERSION$$ v1.52-dev-0-g783bf30
|
||||||
#######################################################
|
#######################################################
|
||||||
# shellcheck disable=SC1117
|
# shellcheck disable=SC1117
|
||||||
|
|
||||||
@ -327,13 +327,13 @@ else
|
|||||||
local user="$4"; [[ -z "$4" && -n "$3" ]] && user="$3"
|
local user="$4"; [[ -z "$4" && -n "$3" ]] && user="$3"
|
||||||
if [ -n "${user}" ]; then
|
if [ -n "${user}" ]; then
|
||||||
# block chat/user
|
# block chat/user
|
||||||
case "$6" in
|
case "$5" in
|
||||||
*"blocked"*)
|
*"blocked"*)
|
||||||
jssh_insertKeyDB "${user}" "User blocked bot on (LANG=C date)" "${BLOCKEDFILE}";;
|
jssh_insertKeyDB "${user}" "User blocked bot on $(LANG=C date)" "${BLOCKEDFILE}";;
|
||||||
*"kicked"*)
|
*"kicked"*)
|
||||||
jssh_insertKeyDB "${user}" "Bot kicked from chat on (LANG=C date)" "${BLOCKEDFILE}";;
|
jssh_insertKeyDB "${user}" "Bot kicked from chat on $(LANG=C date)" "${BLOCKEDFILE}";;
|
||||||
*)
|
*)
|
||||||
jssh_insertKeyDB "${user}" "Reason: $6 on (LANG=C date)" "${BLOCKEDFILE}";;
|
jssh_insertKeyDB "${user}" "Reason: $6 on $(LANG=C date)" "${BLOCKEDFILE}";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user