X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=client.go;h=cc179c8ca1eaadca8796c5d144288ca3d2e0c359;hb=de49f5eeba0117dd09fcdc290ef99ba6a5e2656d;hp=632bf1fb339b3fb7ee8e86e6e9ca1f447401b633;hpb=b2f90fb412218973608b24a32eebadc60de9878a;p=goircd.git diff --git a/client.go b/client.go index 632bf1f..cc179c8 100644 --- a/client.go +++ b/client.go @@ -52,7 +52,7 @@ func NewClient(hostname string, conn net.Conn) *Client { // Client processor blockingly reads everything remote client sends, // splits messages by CRLF and send them to Daemon gorouting for processing // it futher. Also it can signalize that client is unavailable (disconnected). -func (client *Client) Processor(sink chan ClientEvent) { +func (client *Client) Processor(sink chan<- ClientEvent) { var buf_net []byte buf := make([]byte, 0) log.Println("New client", client) @@ -117,3 +117,7 @@ func (client *Client) ReplyNotEnoughParameters(command string) { func (client *Client) ReplyNoChannel(channel string) { client.ReplyNicknamed("403", channel, "No such channel") } + +func (client *Client) ReplyNoNickChan(channel string) { + client.ReplyNicknamed("401", channel, "No such nick/channel") +}