Core/Command: Sanitize input for .account set gmlevel <username> handling
This commit is contained in:
1 parent
210e45e303
commit
79696e0871
1 file changed
+1
-1
@@ -667,7 +667,7 @@ public:
|
||||
if (isAccountNameGiven)
|
||||
{
|
||||
targetAccountName = arg1;
|
||||
if (!AccountMgr::normalizeString(targetAccountName))
|
||||
if (!AccountMgr::normalizeString(targetAccountName) || !AccountMgr::GetId(targetAccountName))
|
||||
{
|
||||
handler->PSendSysMessage(LANG_ACCOUNT_NOT_EXIST, targetAccountName.c_str());
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
Reference in new issue
Block a user