3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-14 07:59:31 +01:00
ergo/irc/nickserv.go

25 lines
670 B
Go

// Copyright (c) 2017 Daniel Oaks <daniel@danieloaks.net>
// released under the MIT license
package irc
import (
"strings"
"github.com/goshuirc/irc-go/ircmsg"
)
// nsHandler handles the /NS and /NICKSERV commands
func nsHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
server.nickservReceivePrivmsg(client, strings.Join(msg.Params, " "))
return false
}
func (server *Server) nickservReceiveNotice(client *Client, message string) {
// do nothing
}
func (server *Server) nickservReceivePrivmsg(client *Client, message string) {
client.Notice(client.t("NickServ is not yet implemented, sorry! To register an account, check /HELPOP REG"))
}