mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 05:49:25 +01:00
b33b217fab
As well, add channel registration and re-applying founder privs on the first client joining the channel. I'm going to re-architect our modes system to better acocunt for this sort of change.
25 lines
621 B
Go
25 lines
621 B
Go
// 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) {
|
|
client.Notice("NickServ is not yet implemented, sorry!")
|
|
}
|