fix(Script/Commands): tele add should only check exact match (#20785)

* fix(Script/Commands): tele add should only check exact match

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/20268

* better describe the variable
This commit is contained in:
Kitzunu
2024-12-01 00:06:26 +01:00
committed by GitHub
parent fc9e730974
commit 5e4f6ac576
3 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ public:
if (!player)
return false;
if (sObjectMgr->GetGameTele(name))
if (sObjectMgr->GetGameTele(name, true))
{
handler->SendErrorMessage(LANG_COMMAND_TP_ALREADYEXIST);
return false;