From 173aa1241bb76516f521bc4db52099131f1fd4e3 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 21 Aug 2020 15:48:12 -0400 Subject: [PATCH] Added message for people who try to use exit but aren't in allowList. --- modules/exit/exit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/exit/exit.sh b/modules/exit/exit.sh index 19f42d5..4e395aa 100755 --- a/modules/exit/exit.sh +++ b/modules/exit/exit.sh @@ -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