Added RPL_CHANNELMODEIS

This commit is contained in:
Harry Jeffery 2013-08-27 19:34:52 +01:00
parent b26d46ca54
commit 9c7dc4d673
2 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,8 @@ func (c *Client) reply(code replyCode, args ...string) {
c.outputChan <- fmt.Sprintf(":%s 323 %s", c.server.name, c.nick) c.outputChan <- fmt.Sprintf(":%s 323 %s", c.server.name, c.nick)
case rplOper: case rplOper:
c.outputChan <- fmt.Sprintf(":%s 381 %s :You are now an operator", c.server.name, c.nick) c.outputChan <- fmt.Sprintf(":%s 381 %s :You are now an operator", c.server.name, c.nick)
case rplChannelModeIs:
c.outputChan <- fmt.Sprintf(":%s 324 %s %s %s", c.server.name, c.nick, args[0], args[1])
case errMoreArgs: case errMoreArgs:
c.outputChan <- fmt.Sprintf(":%s 461 %s :Not enough params", c.server.name, c.nick) c.outputChan <- fmt.Sprintf(":%s 461 %s :Not enough params", c.server.name, c.nick)
case errNoNick: case errNoNick:

View File

@ -68,6 +68,7 @@ const (
rplMsg rplMsg
rplList rplList
rplOper rplOper
rplChannelModeIs
errMoreArgs errMoreArgs
errNoNick errNoNick
errInvalidNick errInvalidNick