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 committed 2020-10-25 19:06:24 +00:00
1 parent 830cd9837b
commit 8dc71fdaad
1 file changed
+1
+1
View File
@@ -6,4 +6,5 @@ shift
if [[ "$user" =~ $allowList ]]; then
./modules/do/do.sh "$1" "#$channel" "does a magical gesture and turns into ${1}!"
nick $1
sed -i bot.cfg -e "s/nick=.*/nick=\"$1\"/"
fi