summaryrefslogtreecommitdiff
path: root/srv/chat/chat.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/chat/chat.go')
-rw-r--r--srv/chat/chat.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/srv/chat/chat.go b/srv/chat/chat.go
index ae305ac..acb7b2d 100644
--- a/srv/chat/chat.go
+++ b/srv/chat/chat.go
@@ -84,7 +84,7 @@ type HistoryOpts struct {
}
func (o HistoryOpts) sanitize() (HistoryOpts, error) {
- if o.Limit < 0 || o.Limit > 100 {
+ if o.Limit <= 0 || o.Limit > 100 {
o.Limit = 100
}