summaryrefslogtreecommitdiff
path: root/server/user/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/user/command.go')
-rw-r--r--server/user/command.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/user/command.go b/server/user/command.go
index 0c4f6d0..6eef81b 100644
--- a/server/user/command.go
+++ b/server/user/command.go
@@ -51,11 +51,11 @@ func (u *User) SendRequest(r session.Request) {
r.ReplyOk()
case "i":
- r.Reply(proto.NewCmd("i", "", u.GetInfo()))
+ r.Reply(proto.NewCmd("i", "", u.InfoFor(r.From.UserId)))
case "s":
r.From.Subscribe(&u.Stream)
- r.Reply(proto.NewCmd("i", "", u.GetInfo()))
+ r.Reply(proto.NewCmd("i", "", u.InfoFor(r.From.UserId)))
case "u":
r.From.Unsubscribe(&u.Stream)