summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2021-11-15 17:01:12 +0100
committerHubert Hirtz <hubert@hirtz.pm>2021-11-16 22:28:37 +0100
commit56fce9e433a78547e2d92ebef92cab62eaa1c1a7 (patch)
tree783f4f5a3ec0faaa3bebf28e6632fc056a80816b /app.go
parentAuthenticate on CAP NEW sasl (diff)
Fix part-ing a channel with duplicate name in other networks
If there are multiple channels with the same name in several networks, we should part from the one from the correct network.
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index 237d606..0e60b80 100644
--- a/app.go
+++ b/app.go
@@ -673,7 +673,7 @@ func (app *App) handleIRCEvent(netID string, ev interface{}) {
Mergeable: true,
})
case irc.SelfPartEvent:
- app.win.RemoveBuffer(ev.Channel)
+ app.win.RemoveBuffer(netID, ev.Channel)
delete(app.messageBounds, boundKey{netID, ev.Channel})
case irc.UserPartEvent:
var body ui.StyledStringBuilder