Updated some straggling session notification errors

This commit is contained in:
2025-01-12 18:12:16 -05:00
parent 3819441292
commit 9b71a84e47

View File

@@ -731,7 +731,9 @@ public:
}
std::string name(code);
if (name.find('"') != std::string::npos || name.find('\\') != std::string::npos)
{
ChatHandler(player->GetSession()).SendNotification(LANG_PRESET_ERR_INVALID_NAME);
}
else
{
for (uint8 presetID = 0; presetID < sT->GetMaxSets(); ++presetID) // should never reach over max