From 4622c6cabc18cc7f4a6b2f41bf6472d86528aaea Mon Sep 17 00:00:00 2001 From: citrons Date: Tue, 27 May 2025 02:38:59 -0500 Subject: retain deleted channel names --- server/channel/command.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'server/channel/command.go') diff --git a/server/channel/command.go b/server/channel/command.go index 94cf38f..5190efe 100644 --- a/server/channel/command.go +++ b/server/channel/command.go @@ -251,3 +251,20 @@ func (c *Channel) SendRequest(r session.Request) { r.ReplyInvalid() } } + +func (t Tombstone) SendRequest(r session.Request) { + switch r.Cmd.Kind { + + case "update": + r.Reply(proto.Fail{"bad-target", "", nil}.Cmd()) + + case "i", "s": + r.Reply(proto.NewCmd("i", "", t.GetInfo())) + + case "u": + r.ReplyOk() + + default: + r.ReplyInvalid() + } +} -- cgit v1.2.3