From b6a0292bc1ac355b822ba0a08594e68727985823 Mon Sep 17 00:00:00 2001 From: in1tiate Date: Thu, 29 Jul 2021 03:52:12 -0500 Subject: [PATCH] make bg command case insensitive --- core/src/commands/area.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/commands/area.cpp b/core/src/commands/area.cpp index e454072..0ecc31f 100644 --- a/core/src/commands/area.cpp +++ b/core/src/commands/area.cpp @@ -239,7 +239,7 @@ void AOClient::cmdSetBackground(int argc, QStringList argv) { AreaData* area = server->areas[current_area]; if (authenticated || !area->bgLocked()) { - if (server->backgrounds.contains(argv[0]) || area->ignoreBgList() == true) { + if (server->backgrounds.contains(argv[0], Qt::CaseInsensitive) || area->ignoreBgList() == true) { area->background() = argv[0]; server->broadcast(AOPacket("BN", {argv[0]}), current_area); sendServerMessageArea(current_char + " changed the background to " + argv[0]);