1
0
Fork 0
forked from External/ergo

Refactor chanserv.go to match nickserv.go, unify the two

This commit is contained in:
Daniel Oaks 2018-04-01 11:51:34 +10:00
parent 9af74d367a
commit 6fb4284e32
2 changed files with 153 additions and 53 deletions

View file

@ -120,7 +120,7 @@ or other verification.`,
}
)
// send a notice from the NickServ "nick"
// csNotice sends the client a notice from NickServ
func nsNotice(rb *ResponseBuffer, text string) {
rb.Add(nil, "NickServ", "NOTICE", rb.target.Nick(), text)
}
@ -167,6 +167,8 @@ func (server *Server) nickservPrivmsgHandler(client *Client, message string, rb
return
}
server.logger.Debug("nickserv", fmt.Sprintf("Client %s ran command %s", client.Nick(), commandName))
commandInfo.handler(server, client, commandName, params, rb)
}