diff options
| author | citrons <citrons@mondecitronne.com> | 2025-05-27 02:41:07 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-05-27 02:41:07 -0500 |
| commit | 53b6ec3880fb3018bd60db2412d3ab826319811b (patch) | |
| tree | 55368ee1b20804d8bf73657111184d6f9c738025 /server/channel | |
| parent | 0c3dbb823d34daebceed49d3264df75b166611e1 (diff) | |
fix channel command
Diffstat (limited to 'server/channel')
| -rw-r--r-- | server/channel/command.go | 7 |
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) |
