From f207117b28f3569ce246b1bb2dd8a183ff7860a6 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:41:47 -0400 Subject: [PATCH] admin: set nick config as well --- plugins/admin/admin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/admin/admin.go b/plugins/admin/admin.go index ea3a0ab..e9b38aa 100644 --- a/plugins/admin/admin.go +++ b/plugins/admin/admin.go @@ -420,6 +420,7 @@ func (p *AdminPlugin) setNick(r bot.Request) bool { p.bot.Send(r.Conn, bot.Message, r.Msg.Channel, "I can't seem to set a new nick.") return true } + p.cfg.Set("nick", nick) p.bot.Send(r.Conn, bot.Message, r.Msg.Channel, fmt.Sprintf("I shall now be known as %s.", nick)) return true }