diff options
Diffstat (limited to 'server/channel/command.go')
| -rw-r--r-- | server/channel/command.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/channel/command.go b/server/channel/command.go index c4eb13b..3cbedab 100644 --- a/server/channel/command.go +++ b/server/channel/command.go @@ -48,9 +48,12 @@ func (c *Channel) SendRequest(r session.Request) { m.Fields["f"] = r.From.UserId r.Reply(proto.NewCmd("p", c.id, c.Put(m))) + case "i": + r.Reply(proto.NewCmd("i", "", c.GetInfoFor(r.From.UserId))) + case "s": r.From.Subscribe(&c.Stream) - r.Reply(proto.NewCmd("i", "", c.GetInfo())) + r.Reply(proto.NewCmd("i", "", c.GetInfoFor(r.From.UserId))) case "u": r.From.Unsubscribe(&c.Stream) |
