From 6ddfc943f5a2f77f00ef2fc0a19787918e31999e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 8 Dec 2022 16:04:01 +0100 Subject: [PATCH] service: send PART in channel delete --- service.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/service.go b/service.go index 48c5fe3..64cb110 100644 --- a/service.go +++ b/service.go @@ -1218,6 +1218,13 @@ func handleServiceChannelDelete(ctx context.Context, dc *downstreamConn, params return fmt.Errorf("failed to delete channel: %v", err) } + if uc := network.conn; uc != nil { + uc.SendMessage(ctx, &irc.Message{ + Command: "PART", + Params: []string{name}, + }) + } + sendServicePRIVMSG(dc, fmt.Sprintf("deleted channel %q", name)) return nil }