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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/user/command.go b/server/user/command.go
index 210dede..b14845c 100644
--- a/server/user/command.go
+++ b/server/user/command.go
@@ -40,7 +40,7 @@ func (u *User) SendRequest(r session.Request) {
}
}
u.Stream.Event(r.Cmd)
- r.Reply(proto.NewCmd("ok", ""))
+ r.ReplyOk()
case "i":
r.Reply(proto.NewCmd("i", "", u.GetInfo()))
@@ -51,7 +51,7 @@ func (u *User) SendRequest(r session.Request) {
case "u":
r.From.Unsubscribe(&u.Stream)
- r.Reply(proto.NewCmd("ok", ""))
+ r.ReplyOk()
default:
r.ReplyInvalid()
@@ -68,7 +68,7 @@ func (t Tombstone) SendRequest(r session.Request) {
r.Reply(proto.NewCmd("i", "", t.GetInfo()))
case "u":
- r.Reply(proto.NewCmd("ok", ""))
+ r.ReplyOk()
default:
r.ReplyInvalid()