aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/CommandLine
diff options
context:
space:
mode:
authorShauren <none@none>2010-12-22 21:25:23 +0100
committerShauren <none@none>2010-12-22 21:25:23 +0100
commit0f3b9019a88777bef8383e699d27a7e8615f93f2 (patch)
treeb88e120ad46050aa073ee451676801aabbd3eaa1 /src/server/worldserver/CommandLine
parent0948fc5bbed08ae6edee4fa1ff86df5cfbffa996 (diff)
Core: Get rid of dirty operator workaround for ACE_Singleton class implementation
--HG-- branch : trunk
Diffstat (limited to 'src/server/worldserver/CommandLine')
-rwxr-xr-xsrc/server/worldserver/CommandLine/CliRunnable.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/worldserver/CommandLine/CliRunnable.cpp b/src/server/worldserver/CommandLine/CliRunnable.cpp
index e9da92f9e6b..8b2fe8bd422 100755
--- a/src/server/worldserver/CommandLine/CliRunnable.cpp
+++ b/src/server/worldserver/CommandLine/CliRunnable.cpp
@@ -157,7 +157,7 @@ bool ChatHandler::GetDeletedCharacterInfoList(DeletedInfoList& foundList, std::s
info.accountId = fields[2].GetUInt32();
// account name will be empty for not existed account
- sAccountMgr.GetName(info.accountId, info.accountName);
+ sAccountMgr->GetName(info.accountId, info.accountName);
info.deleteDate = time_t(fields[3].GetUInt64());
@@ -280,14 +280,14 @@ void ChatHandler::HandleCharacterDeletedRestoreHelper(DeletedInfo const& delInfo
}
// check character count
- uint32 charcount = sAccountMgr.GetCharactersCount(delInfo.accountId);
+ uint32 charcount = sAccountMgr->GetCharactersCount(delInfo.accountId);
if (charcount >= 10)
{
PSendSysMessage(LANG_CHARACTER_DELETED_SKIP_FULL, delInfo.name.c_str(), delInfo.lowguid, delInfo.accountId);
return;
}
- if (sObjectMgr.GetPlayerGUIDByName(delInfo.name))
+ if (sObjectMgr->GetPlayerGUIDByName(delInfo.name))
{
PSendSysMessage(LANG_CHARACTER_DELETED_SKIP_NAME, delInfo.name.c_str(), delInfo.lowguid, delInfo.accountId);
return;
@@ -352,7 +352,7 @@ bool ChatHandler::HandleCharacterDeletedRestoreCommand(const char* args)
if (newAccount && newAccount != delInfo.accountId)
{
delInfo.accountId = newAccount;
- sAccountMgr.GetName(newAccount, delInfo.accountName);
+ sAccountMgr->GetName(newAccount, delInfo.accountName);
}
HandleCharacterDeletedRestoreHelper(delInfo);
@@ -447,7 +447,7 @@ bool ChatHandler::HandleCharacterEraseCommand(const char* args){
uint64 character_guid;
uint32 account_id;
- Player *player = sObjectMgr.GetPlayer(character_name.c_str());
+ Player *player = sObjectMgr->GetPlayer(character_name.c_str());
if (player)
{
character_guid = player->GetGUID();
@@ -456,7 +456,7 @@ bool ChatHandler::HandleCharacterEraseCommand(const char* args){
}
else
{
- character_guid = sObjectMgr.GetPlayerGUIDByName(character_name);
+ character_guid = sObjectMgr->GetPlayerGUIDByName(character_name);
if (!character_guid)
{
PSendSysMessage(LANG_NO_PLAYER,character_name.c_str());
@@ -464,11 +464,11 @@ bool ChatHandler::HandleCharacterEraseCommand(const char* args){
return false;
}
- account_id = sObjectMgr.GetPlayerAccountIdByGUID(character_guid);
+ account_id = sObjectMgr->GetPlayerAccountIdByGUID(character_guid);
}
std::string account_name;
- sAccountMgr.GetName (account_id,account_name);
+ sAccountMgr->GetName (account_id,account_name);
Player::DeleteFromDB(character_guid, account_id, true, true);
PSendSysMessage(LANG_CHARACTER_DELETED,character_name.c_str(),GUID_LOPART(character_guid),account_name.c_str(), account_id);