admin: set nick config as well

This commit is contained in:
Chris Sexton 2024-04-19 13:41:47 -04:00
parent e7acd4730c
commit f207117b28
1 changed files with 1 additions and 0 deletions

View File

@ -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.") p.bot.Send(r.Conn, bot.Message, r.Msg.Channel, "I can't seem to set a new nick.")
return true 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)) p.bot.Send(r.Conn, bot.Message, r.Msg.Channel, fmt.Sprintf("I shall now be known as %s.", nick))
return true return true
} }