diff options
Diffstat (limited to 'server/channel')
| -rw-r--r-- | server/channel/command.go | 5 |
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 |
