From 42c068b4bf45ab6eb5b51f9d98c41e63c42dc018 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Fri, 30 Aug 2013 16:36:41 +0100 Subject: [PATCH] /JOIN now sends channel name with capitalisation --- client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client.go b/client.go index e341825..273dbb2 100644 --- a/client.go +++ b/client.go @@ -80,13 +80,13 @@ func (c *Client) joinChannel(channelName string) { c.channelMap[channelKey] = channel for _, client := range channel.clientMap { - client.reply(rplJoin, c.nick, channelName) + client.reply(rplJoin, c.nick, channel.name) } if channel.topic != "" { - c.reply(rplTopic, channelName, channel.topic) + c.reply(rplTopic, channel.name, channel.topic) } else { - c.reply(rplNoTopic, channelName) + c.reply(rplNoTopic, channel.name) } nicks := make([]string, 0, 100) @@ -117,7 +117,7 @@ func (c *Client) partChannel(channelName, reason string) { //Notify clients of the part for _, client := range channel.clientMap { - client.reply(rplPart, c.nick, channelName, reason) + client.reply(rplPart, c.nick, channel.name, reason) } delete(channel.clientMap, strings.ToLower(c.nick))