Core/Command: Sanitize input for .account set gmlevel <username> handling

This commit is contained in:
click committed 2015-04-07 06:12:37 +02:00
1 parent 210e45e303
commit 79696e0871
1 file changed
+1 -1
+1 -1
View File
@@ -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);