From e580513fa5de9ffbb80315b06da788a53ebe35da Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 7 Mar 2016 13:20:04 -0500 Subject: [PATCH] Update channel.modeMap when a client leaves a channel --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 8bce951..3936464 100644 --- a/client.go +++ b/client.go @@ -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 {