summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-09 14:45:51 -0500
committercitrons <citrons@mondecitronne.com>2025-06-09 14:46:11 -0500
commitcd06a27e20717cdfbcc6840328f67405acc7c9e7 (patch)
tree9cc2e9c67c749f4a9e263d586a244b7e7746b5fd /server
parentdc957f6bb77c9d89b52f22b605f79f7be110f546 (diff)
jump to message
Diffstat (limited to 'server')
-rw-r--r--server/channel/command.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/channel/command.go b/server/channel/command.go
index 05a1c7a..c4eb13b 100644
--- a/server/channel/command.go
+++ b/server/channel/command.go
@@ -140,7 +140,7 @@ func (c *Channel) SendRequest(r session.Request) {
case "latest":
max = len(c.messages)
min = max - 20
- case "before", "around", "at":
+ case "before", "around", "after", "at":
var id string
for k, v := range h.Fields {
switch k {
@@ -163,6 +163,9 @@ func (c *Channel) SendRequest(r session.Request) {
case "around":
min = i - 9
max = i + 11
+ case "after":
+ min = i + 1
+ max = min + 20
case "at":
min = i
max = i + 1