From 0ea89852d0f13ff43a88d8bf09c56b880d125cf7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 8 Nov 2025 18:02:04 +0000 Subject: [PATCH] Fix an inverted condition in rpc_user. --- modules/rpc/rpc_user.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rpc/rpc_user.cpp b/modules/rpc/rpc_user.cpp index 208ed1412..0caa35128 100644 --- a/modules/rpc/rpc_user.cpp +++ b/modules/rpc/rpc_user.cpp @@ -82,9 +82,9 @@ private: return; if (NickAlias::Find(GetAccount())) - request.Error(ERR_INVALID_ACCOUNT, "Invalid account"); - else request.Error(ERR_INVALID_PASSWORD, "Invalid password"); + else + request.Error(ERR_INVALID_ACCOUNT, "Invalid account"); rpcinterface->Reply(request); client->SendReply(&request.reply);