Update channel.modeMap when a client leaves a channel
This commit is contained in:
parent
4fb9253cc5
commit
e580513fa5
@ -117,6 +117,7 @@ func (c *Client) partChannel(channelName, reason string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete(c.channelMap, channelKey)
|
delete(c.channelMap, channelKey)
|
||||||
|
delete(channel.modeMap, strings.ToLower(c.nick))
|
||||||
delete(channel.clientMap, strings.ToLower(c.nick))
|
delete(channel.clientMap, strings.ToLower(c.nick))
|
||||||
|
|
||||||
if len(channel.clientMap) == 0 {
|
if len(channel.clientMap) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user