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"
|
|
|
|
|
|
|
|
"github.com/DanielOaks/girc-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) {
|
2017-04-30 05:53:49 +02:00
|
|
|
client.Notice("NickServ is not yet implemented, sorry! To register an account, check /HELPOP REG")
|
2017-03-11 13:01:40 +01:00
|
|
|
}
|