diff options
Diffstat (limited to 'server/channel/command.go')
| -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) |
