summaryrefslogtreecommitdiff
path: root/server/channel/command.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-05-27 02:38:59 -0500
committercitrons <citrons@mondecitronne.com>2025-05-27 02:40:01 -0500
commit4622c6cabc18cc7f4a6b2f41bf6472d86528aaea (patch)
treeb5e5b6fa2a706d31140666cc06709fb403bc8eaf /server/channel/command.go
parent874c492e5c471d4ee9bde1638dc675999b8b1f51 (diff)
retain deleted channel names
Diffstat (limited to 'server/channel/command.go')
-rw-r--r--server/channel/command.go17
1 files changed, 17 insertions, 0 deletions
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()
+ }
+}