summaryrefslogtreecommitdiff
path: root/server/channel
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-02 16:32:49 -0500
committercitrons <citrons@mondecitronne.com>2025-06-02 16:36:36 -0500
commitfdaf24fd0aff9e1089157fd65d81a5aa3fe550bd (patch)
tree4b44f73af9cd139b698bf85dc23d6380b4f7d28a /server/channel
parent30243fd5c596704d5e30b8ea19a05af1dd287d2e (diff)
user statuses
Diffstat (limited to 'server/channel')
-rw-r--r--server/channel/command.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/channel/command.go b/server/channel/command.go
index af5ff16..e645055 100644
--- a/server/channel/command.go
+++ b/server/channel/command.go
@@ -25,6 +25,10 @@ func (c *Channel) SendRequest(r session.Request) {
return
}
}
+ if len(m.Fields[""]) > 50000 {
+ r.Reply(proto.Fail{"too-long", "", nil}.Cmd())
+ return
+ }
default:
r.ReplyInvalid()
return