service: send PART in channel delete

This commit is contained in:
Simon Ser 2022-12-08 16:04:01 +01:00
parent 0edf3a40c2
commit 6ddfc943f5

View file

@ -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
}