From fdaf24fd0aff9e1089157fd65d81a5aa3fe550bd Mon Sep 17 00:00:00 2001 From: citrons Date: Mon, 2 Jun 2025 16:32:49 -0500 Subject: user statuses --- server/channel/command.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/channel') 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 -- cgit v1.2.3