From 206dda07612b5721b62c4b97948e88381ce7244f Mon Sep 17 00:00:00 2001 From: ycc Date: Sun, 31 Dec 2023 20:33:01 +0100 Subject: [PATCH] fix missing init --- server/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/router.go b/server/router.go index b31ff1f..eec573d 100644 --- a/server/router.go +++ b/server/router.go @@ -129,6 +129,7 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe from_server.Invitation.Expiry = expiry.UTC().Unix() case 2: // get invitation invitation, err := r.GetInvitation(msg.Invitation.Shortcode, msg.Invitation.Password) + from_server.Invitation = &meowlib.Invitation{} if err != nil { if err.Error() == "auth failed" { from_server.Invitation.Payload = []byte("authentication failure")