From 0c3dbb823d34daebceed49d3264df75b166611e1 Mon Sep 17 00:00:00 2001 From: citrons Date: Tue, 27 May 2025 02:40:32 -0500 Subject: Request.ReplyOk --- server/user/command.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/user/command.go') 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() -- cgit v1.2.3