make bg command case insensitive

This commit is contained in:
in1tiate 2021-07-29 03:52:12 -05:00
parent de89d156ec
commit b6a0292bc1

View File

@ -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]);