fix missing init
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ycc 2023-12-31 20:33:01 +01:00
parent 7a6c1cd085
commit 206dda0761

View File

@ -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")