2017-03-11 13:01:40 +01:00
|
|
|
// Copyright (c) 2017 Daniel Oaks <daniel@danieloaks.net>
|
|
|
|
// released under the MIT license
|
|
|
|
|
|
|
|
package irc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
|
2017-06-15 18:14:19 +02:00
|
|
|
"github.com/goshuirc/irc-go/ircmsg"
|
2017-03-11 13:01:40 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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) {
|
2018-02-02 07:37:06 +01:00
|
|
|
client.Notice(client.t("NickServ is not yet implemented, sorry! To register an account, check /HELPOP ACC"))
|
2017-03-11 13:01:40 +01:00
|
|
|
}
|