mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Commands: Prevent creating accounts containing '@' character with .account create command
This commit is contained in:
@@ -121,6 +121,13 @@ public:
|
||||
if (!accountName || !password)
|
||||
return false;
|
||||
|
||||
if (strchr(accountName, '@'))
|
||||
{
|
||||
handler->PSendSysMessage(LANG_ACCOUNT_USE_BNET_COMMANDS);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (sAccountMgr->CreateAccount(std::string(accountName), std::string(password), email))
|
||||
{
|
||||
case AccountOpResult::AOR_OK:
|
||||
|
||||
Reference in New Issue
Block a user