forked from External/ergo
Refactor chanserv.go to match nickserv.go, unify the two
This commit is contained in:
parent
9af74d367a
commit
6fb4284e32
2 changed files with 153 additions and 53 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue