/JOIN now sends channel name with capitalisation
This commit is contained in:
parent
05743d4b4e
commit
42c068b4bf
@ -80,13 +80,13 @@ func (c *Client) joinChannel(channelName string) {
|
|||||||
c.channelMap[channelKey] = channel
|
c.channelMap[channelKey] = channel
|
||||||
|
|
||||||
for _, client := range channel.clientMap {
|
for _, client := range channel.clientMap {
|
||||||
client.reply(rplJoin, c.nick, channelName)
|
client.reply(rplJoin, c.nick, channel.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
if channel.topic != "" {
|
if channel.topic != "" {
|
||||||
c.reply(rplTopic, channelName, channel.topic)
|
c.reply(rplTopic, channel.name, channel.topic)
|
||||||
} else {
|
} else {
|
||||||
c.reply(rplNoTopic, channelName)
|
c.reply(rplNoTopic, channel.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
nicks := make([]string, 0, 100)
|
nicks := make([]string, 0, 100)
|
||||||
@ -117,7 +117,7 @@ func (c *Client) partChannel(channelName, reason string) {
|
|||||||
|
|
||||||
//Notify clients of the part
|
//Notify clients of the part
|
||||||
for _, client := range channel.clientMap {
|
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))
|
delete(channel.clientMap, strings.ToLower(c.nick))
|
||||||
|
Loading…
Reference in New Issue
Block a user