mirror of https://github.com/velour/catbase.git
admin: set nick config as well
This commit is contained in:
parent
e7acd4730c
commit
f207117b28
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue