diff options
| author | citrons <citrons@mondecitronne.com> | 2025-05-27 02:40:32 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-05-27 02:40:32 -0500 |
| commit | 0c3dbb823d34daebceed49d3264df75b166611e1 (patch) | |
| tree | e7f6acc48e9edd5fe2a8e70998a815e29175c622 /server/user | |
| parent | 4622c6cabc18cc7f4a6b2f41bf6472d86528aaea (diff) | |
Request.ReplyOk
Diffstat (limited to 'server/user')
| -rw-r--r-- | server/user/command.go | 6 |
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() |
