mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243)
This commit is contained in:
@@ -6981,7 +6981,7 @@ std::string ObjectMgr::GeneratePetName(uint32 entry)
|
||||
if (list0.empty() || list1.empty())
|
||||
{
|
||||
CreatureTemplate const* cinfo = GetCreatureTemplate(entry);
|
||||
char* petname = GetPetName(cinfo->family, sWorld->GetDefaultDbcLocale());
|
||||
char const* petname = GetPetName(cinfo->family, sWorld->GetDefaultDbcLocale());
|
||||
if (!petname)
|
||||
return cinfo->Name;
|
||||
|
||||
@@ -8124,7 +8124,7 @@ void ObjectMgr::LoadGameTele()
|
||||
LOG_INFO("server.loading", " ");
|
||||
}
|
||||
|
||||
GameTele const* ObjectMgr::GetGameTele(const std::string& name) const
|
||||
GameTele const* ObjectMgr::GetGameTele(std::string_view name) const
|
||||
{
|
||||
// explicit name case
|
||||
std::wstring wname;
|
||||
@@ -8180,7 +8180,7 @@ bool ObjectMgr::AddGameTele(GameTele& tele)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ObjectMgr::DeleteGameTele(const std::string& name)
|
||||
bool ObjectMgr::DeleteGameTele(std::string_view name)
|
||||
{
|
||||
// explicit name case
|
||||
std::wstring wname;
|
||||
|
||||
Reference in New Issue
Block a user