From bdd5ad745ca30902d92db441cb9cf2b803dbe252 Mon Sep 17 00:00:00 2001 From: in1tiate Date: Thu, 17 Jun 2021 03:32:01 -0500 Subject: [PATCH] Make iniswap detection ignore case --- core/src/packets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/packets.cpp b/core/src/packets.cpp index 4c4e0d0..1dda209 100644 --- a/core/src/packets.cpp +++ b/core/src/packets.cpp @@ -517,11 +517,11 @@ AOPacket AOClient::validateIcPacket(AOPacket packet) args.append(incoming_args[1].toString()); // char name - if (current_char != incoming_args[2].toString()) { + if (current_char.toLower() != incoming_args[2].toString().toLower()) { // Selected char is different from supplied folder name // This means the user is INI-swapped if (!area->iniswapAllowed()) { - if (!server->characters.contains(incoming_args[2].toString())) + if (!server->characters.contains(incoming_args[2].toString(), Qt::CaseInsensitive)) return invalid; } qDebug() << "INI swap detected from " << getIpid();