summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-05-27 02:41:07 -0500
committercitrons <citrons@mondecitronne.com>2025-05-27 02:41:07 -0500
commit53b6ec3880fb3018bd60db2412d3ab826319811b (patch)
tree55368ee1b20804d8bf73657111184d6f9c738025 /server
parent0c3dbb823d34daebceed49d3264df75b166611e1 (diff)
fix channel command
Diffstat (limited to 'server')
-rw-r--r--server/channel/command.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/channel/command.go b/server/channel/command.go
index 5e6c32c..af5ff16 100644
--- a/server/channel/command.go
+++ b/server/channel/command.go
@@ -36,12 +36,7 @@ func (c *Channel) SendRequest(r session.Request) {
}
m.Fields["f"] = r.From.UserId
- err := c.Put(m)
- if err != nil {
- r.Reply(err.Cmd())
- return
- }
- r.Reply(proto.NewCmd("p", c.id, m))
+ r.Reply(proto.NewCmd("p", c.id, c.Put(m)))
case "s":
r.From.Subscribe(&c.Stream)