Update channel.modeMap when a client leaves a channel

This commit is contained in:
ed 2016-03-07 13:20:04 -05:00 committed by Harry Jeffery
parent 4fb9253cc5
commit e580513fa5

View File

@ -117,6 +117,7 @@ func (c *Client) partChannel(channelName, reason string) {
}
delete(c.channelMap, channelKey)
delete(channel.modeMap, strings.ToLower(c.nick))
delete(channel.clientMap, strings.ToLower(c.nick))
if len(channel.clientMap) == 0 {