mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8337] Fixed typo in function name. Other cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
6b25da27dd
commit
d7b091793c
7 changed files with 36 additions and 36 deletions
|
|
@ -853,7 +853,7 @@ bool ChatHandler::HandleAccountSetGmLevelCommand(const char* args)
|
|||
return false;
|
||||
|
||||
targetAccountName = arg1;
|
||||
if(!AccountMgr::normilizeString(targetAccountName))
|
||||
if (!AccountMgr::normalizeString(targetAccountName))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,targetAccountName.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -919,7 +919,7 @@ bool ChatHandler::HandleAccountSetPasswordCommand(const char* args)
|
|||
return false;
|
||||
|
||||
std::string account_name = szAccount;
|
||||
if(!AccountMgr::normilizeString(account_name))
|
||||
if (!AccountMgr::normalizeString(account_name))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -4906,7 +4906,7 @@ bool ChatHandler::HandleBanHelper(BanMode mode, const char* args)
|
|||
switch(mode)
|
||||
{
|
||||
case BAN_ACCOUNT:
|
||||
if(!AccountMgr::normilizeString(nameOrIP))
|
||||
if (!AccountMgr::normalizeString(nameOrIP))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,nameOrIP.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -4986,7 +4986,7 @@ bool ChatHandler::HandleUnBanHelper(BanMode mode, const char* args)
|
|||
switch(mode)
|
||||
{
|
||||
case BAN_ACCOUNT:
|
||||
if(!AccountMgr::normilizeString(nameOrIP))
|
||||
if (!AccountMgr::normalizeString(nameOrIP))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,nameOrIP.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -5021,11 +5021,11 @@ bool ChatHandler::HandleBanInfoAccountCommand(const char* args)
|
|||
return false;
|
||||
|
||||
char* cname = strtok((char*)args, "");
|
||||
if(!cname)
|
||||
if (!cname)
|
||||
return false;
|
||||
|
||||
std::string account_name = cname;
|
||||
if(!AccountMgr::normilizeString(account_name))
|
||||
if (!AccountMgr::normalizeString(account_name))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -5033,7 +5033,7 @@ bool ChatHandler::HandleBanInfoAccountCommand(const char* args)
|
|||
}
|
||||
|
||||
uint32 accountid = accmgr.GetId(account_name);
|
||||
if(!accountid)
|
||||
if (!accountid)
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
return true;
|
||||
|
|
@ -5046,13 +5046,13 @@ bool ChatHandler::HandleBanInfoCharacterCommand(const char* args)
|
|||
{
|
||||
Player* target;
|
||||
uint64 target_guid;
|
||||
if(!extractPlayerTarget((char*)args,&target,&target_guid))
|
||||
if (!extractPlayerTarget((char*)args,&target,&target_guid))
|
||||
return false;
|
||||
|
||||
uint32 accountid = target ? target->GetSession()->GetAccountId() : objmgr.GetPlayerAccountIdByGUID(target_guid);
|
||||
|
||||
std::string accountname;
|
||||
if(!accmgr.GetName(accountid,accountname))
|
||||
if (!accmgr.GetName(accountid,accountname))
|
||||
{
|
||||
PSendSysMessage(LANG_BANINFO_NOCHARACTER);
|
||||
return true;
|
||||
|
|
@ -5390,15 +5390,15 @@ bool ChatHandler::HandlePDumpLoadCommand(const char *args)
|
|||
return false;
|
||||
|
||||
char * file = strtok((char*)args, " ");
|
||||
if(!file)
|
||||
if (!file)
|
||||
return false;
|
||||
|
||||
char * account = strtok(NULL, " ");
|
||||
if(!account)
|
||||
if (!account)
|
||||
return false;
|
||||
|
||||
std::string account_name = account;
|
||||
if(!AccountMgr::normilizeString(account_name))
|
||||
if (!AccountMgr::normalizeString(account_name))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -5406,10 +5406,10 @@ bool ChatHandler::HandlePDumpLoadCommand(const char *args)
|
|||
}
|
||||
|
||||
uint32 account_id = accmgr.GetId(account_name);
|
||||
if(!account_id)
|
||||
if (!account_id)
|
||||
{
|
||||
account_id = atoi(account); // use original string
|
||||
if(!account_id)
|
||||
if (!account_id)
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -5417,7 +5417,7 @@ bool ChatHandler::HandlePDumpLoadCommand(const char *args)
|
|||
}
|
||||
}
|
||||
|
||||
if(!accmgr.GetName(account_id,account_name))
|
||||
if (!accmgr.GetName(account_id,account_name))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -6074,10 +6074,10 @@ bool ChatHandler::HandleAccountSetAddonCommand(const char* args)
|
|||
std::string account_name;
|
||||
uint32 account_id;
|
||||
|
||||
if(!szExp)
|
||||
if (!szExp)
|
||||
{
|
||||
Player* player = getSelectedPlayer();
|
||||
if(!player)
|
||||
if (!player)
|
||||
return false;
|
||||
|
||||
account_id = player->GetSession()->GetAccountId();
|
||||
|
|
@ -6088,7 +6088,7 @@ bool ChatHandler::HandleAccountSetAddonCommand(const char* args)
|
|||
{
|
||||
///- Convert Account name to Upper Format
|
||||
account_name = szAcc;
|
||||
if(!AccountMgr::normilizeString(account_name))
|
||||
if (!AccountMgr::normalizeString(account_name))
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -6096,7 +6096,7 @@ bool ChatHandler::HandleAccountSetAddonCommand(const char* args)
|
|||
}
|
||||
|
||||
account_id = accmgr.GetId(account_name);
|
||||
if(!account_id)
|
||||
if (!account_id)
|
||||
{
|
||||
PSendSysMessage(LANG_ACCOUNT_NOT_EXIST,account_name.c_str());
|
||||
SetSentErrorMessage(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue