If the nick is changed on command using the nick module, retain the new nick after reconnect or restart

This commit is contained in:
Kyle 2020-10-25 19:06:24 +00:00
parent 830cd9837b
commit 8dc71fdaad

View File

@ -6,4 +6,5 @@ shift
if [[ "$user" =~ $allowList ]]; then if [[ "$user" =~ $allowList ]]; then
./modules/do/do.sh "$1" "#$channel" "does a magical gesture and turns into ${1}!" ./modules/do/do.sh "$1" "#$channel" "does a magical gesture and turns into ${1}!"
nick $1 nick $1
sed -i bot.cfg -e "s/nick=.*/nick=\"$1\"/"
fi fi