From 6895aa7c8e8d8a7ee5f08343f9793d6c50c3ba4b Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 31 Jul 2023 18:49:56 -0600 Subject: [PATCH] gql fix :) --- gql.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gql.go b/gql.go index a824de3..e8d9319 100644 --- a/gql.go +++ b/gql.go @@ -914,8 +914,9 @@ func NewGQLExtContext() *GQLExtContext { sig := StringSignal{NewDirectSignal(GQLStateSignalType), "stop_server"} err = Allowed(ctx.Context, ctx.User, sig.Permission(), ctx.Server) if err != nil { - return nil, err + return err, nil } + err = ctx.Context.Send(ctx.Server.ID, ctx.Server.ID, sig) if err != nil { return nil, err