make bg command case insensitive
This commit is contained in:
parent
de89d156ec
commit
b6a0292bc1
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user