From d1d84bd7a4ab804253f9214defb1643a33833c2b Mon Sep 17 00:00:00 2001 From: Emagi Date: Wed, 2 Apr 2025 11:31:14 -0400 Subject: [PATCH] Fixed /zone command and zone string checks to make a full check not partial check --- source/WorldServer/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/WorldServer/World.cpp b/source/WorldServer/World.cpp index 0df0c2c..f295777 100644 --- a/source/WorldServer/World.cpp +++ b/source/WorldServer/World.cpp @@ -703,7 +703,7 @@ bool ZoneList::GetZone(ZoneChangeDetails* zone_details, int32 opt_zone_id, std:: if(max_players < 1) // default of 30 max_players = 30; - if(!tmp->isZoneShuttingDown() && ((opt_zone_id > 0 && tmp->GetZoneID() == opt_zone_id) || (opt_zone_name.length() > 0 && strncasecmp(tmp->GetZoneName(), opt_zone_name.c_str(), opt_zone_name.length())==0))){ + if(!tmp->isZoneShuttingDown() && ((opt_zone_id > 0 && tmp->GetZoneID() == opt_zone_id) || (opt_zone_name.length() > 0 && strlen(tmp->GetZoneName()) == opt_zone_name.length() && strncasecmp(tmp->GetZoneName(), opt_zone_name.c_str(), opt_zone_name.length())==0))){ if(tmp->NumPlayers() < max_players || tmp->IsCityZone()) { ret = tmp; if(increment_zone) {