Add mod notice to /modpass command

This commit is contained in:
Zorchenhimer 2019-03-16 16:59:12 -04:00
parent 224fdd96c8
commit d984269407

View File

@ -243,6 +243,7 @@ var commands = &CommandControl{
common.CNModpass.String(): Command{
HelpText: "Generate a single-use mod password.",
Function: func(cl *Client, args []string) string {
cl.belongsTo.AddModNotice(cl.name + " generated a mod password")
password := cl.belongsTo.generateModPass()
return "Single use password: " + password
},