From ececa97d9ee6a435f81756bc25e25ed80285d20b Mon Sep 17 00:00:00 2001 From: citrons Date: Thu, 12 Jun 2025 15:19:02 -0500 Subject: InfoFor --- server/channel/command.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/channel/command.go') 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) -- cgit v1.2.3