mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
* Move account related functions from ObjectMgr to AccountMgr and drop duplicate function also.
This commit is contained in:
parent
fc79aa717a
commit
ad5f559dad
7 changed files with 41 additions and 53 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include "WorldSession.h"
|
||||
#include "World.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "AccountMgr.h"
|
||||
#include "PlayerDump.h"
|
||||
#include "SpellMgr.h"
|
||||
#include "Player.h"
|
||||
|
|
@ -711,7 +712,7 @@ bool ChatHandler::HandleSecurityCommand(const char* args)
|
|||
return false;
|
||||
}
|
||||
targetAccountId = objmgr.GetPlayerAccountIdByGUID(targetGUID);
|
||||
targetSecurity = objmgr.GetSecurityByAccount(targetAccountId);
|
||||
targetSecurity = accmgr.GetSecurity(targetAccountId);
|
||||
}
|
||||
|
||||
arg2 = strtok(NULL, " ");
|
||||
|
|
@ -4964,14 +4965,14 @@ bool ChatHandler::HandleLoadPDumpCommand(const char *args)
|
|||
if(!file || !acc)
|
||||
return false;
|
||||
|
||||
uint32 account_id = objmgr.GetAccountByAccountName(acc);
|
||||
uint32 account_id = accmgr.GetId(acc);
|
||||
if(!account_id)
|
||||
{
|
||||
account_id = atoi(acc);
|
||||
if(account_id)
|
||||
{
|
||||
std::string acc_name;
|
||||
if(!objmgr.GetAccountNameByAccount(account_id,acc_name))
|
||||
if(!accmgr.GetName(account_id,acc_name))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue