Added message for people who try to use exit but aren't in allowList.
This commit is contained in:
parent
95eb4d010c
commit
173aa1241b
@ -2,7 +2,10 @@
|
||||
|
||||
user=$1
|
||||
shift
|
||||
chan="$1"
|
||||
shift
|
||||
if [[ "$user" =~ $allowList ]]; then
|
||||
close_bot
|
||||
else
|
||||
msg "$chan" "$user: you are not an administrator for this bot. If you believe this is an error, please contact the bot's owner."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user