move _botadmin back to aliases

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-05-20 19:16:00 +02:00
parent d34c22f156
commit 300553f8ba
2 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v0.80-pre-5-ge5f7b2d
#### $$VERSION$$ v0.80-pre-6-gd34c22f
#
# Exit Codes:
# - 0 sucess (hopefully)
@ -142,10 +142,6 @@ download() {
printf '%s\n' "${TMPDIR:-.}/${file}"
}
# easy handling of users:
_is_botadmin() {
user_is_botadmin "${USER[ID]}"
}
# $1 postfix, e.g. chatid
# $2 prefix, back- or startbot-
procname(){

View File

@ -5,10 +5,14 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v0.80-pre-5-ge5f7b2d
#### $$VERSION$$ v0.80-pre-6-gd34c22f
#
# source from commands.sh to use the aliases
# easy handling of users:
_is_botadmin() {
user_is_botadmin "${USER[ID]}"
}
_is_admin() {
user_is_admin "${CHAT[ID]}" "${USER[ID]}"
}