From 8dc71fdaad3a32d06ed26fe2d936316e15410fca Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 25 Oct 2020 19:06:24 +0000 Subject: [PATCH] If the nick is changed on command using the nick module, retain the new nick after reconnect or restart --- modules/nick/nick.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/nick/nick.sh b/modules/nick/nick.sh index b23ffa9..0e3e919 100755 --- a/modules/nick/nick.sh +++ b/modules/nick/nick.sh @@ -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