diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-12 15:19:02 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-12 15:19:02 -0500 |
| commit | ececa97d9ee6a435f81756bc25e25ed80285d20b (patch) | |
| tree | 2bd48173352962fb505d87541815fdabfab98c86 /server/channel/command.go | |
| parent | 6edb15c2e8012e963c6f238c9177bdef06a9d651 (diff) | |
InfoFor
Diffstat (limited to 'server/channel/command.go')
| -rw-r--r-- | server/channel/command.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/channel/command.go b/server/channel/command.go index 3cbedab..3434326 100644 --- a/server/channel/command.go +++ b/server/channel/command.go @@ -49,11 +49,11 @@ func (c *Channel) SendRequest(r session.Request) { r.Reply(proto.NewCmd("p", c.id, c.Put(m))) case "i": - r.Reply(proto.NewCmd("i", "", c.GetInfoFor(r.From.UserId))) + r.Reply(proto.NewCmd("i", "", c.InfoFor(r.From.UserId))) case "s": r.From.Subscribe(&c.Stream) - r.Reply(proto.NewCmd("i", "", c.GetInfoFor(r.From.UserId))) + r.Reply(proto.NewCmd("i", "", c.InfoFor(r.From.UserId))) case "u": r.From.Unsubscribe(&c.Stream) @@ -127,7 +127,7 @@ func (c *Channel) SendRequest(r session.Request) { cmd := proto.NewCmd("list", c.Id()) for m, _ := range c.Members() { u := c.store.world.GetObject(m).(*user.User) - cmd.Args = append(cmd.Args, u.GetInfo()) + cmd.Args = append(cmd.Args, u.InfoFor(r.From.UserId)) } r.Reply(cmd) |
