Core/Chat Commands: Allow to add overlapping teles .

Allow to add overlapping teles like "abc" even if "abcde" already exists. This wasn't possible and a "Teleport already exists" error was thrown instead.
This commit is contained in:
jackpoz
2013-10-25 21:50:52 +02:00
parent a14bbf773e
commit daf5a4b5c3
3 changed files with 21 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ public:
std::string name = args;
if (sObjectMgr->GetGameTele(name))
if (sObjectMgr->GetGameTeleExactName(name))
{
handler->SendSysMessage(LANG_COMMAND_TP_ALREADYEXIST);
handler->SetSentErrorMessage(true);