Cleanups
This commit is contained in:
@@ -222,12 +222,12 @@ namespace Game.Chat.Commands
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We compare the old, saved password to the entered old password - no chance for the unauthorized.
|
// We compare the old, saved password to the entered old password - no chance for the unauthorized.
|
||||||
if (!Global.BNetAccountMgr.CheckPassword(handler.GetSession().GetAccountId(), oldPassword))
|
if (!Global.BNetAccountMgr.CheckPassword(handler.GetSession().GetBattlenetAccountId(), oldPassword))
|
||||||
{
|
{
|
||||||
handler.SendSysMessage(CypherStrings.CommandWrongoldpassword);
|
handler.SendSysMessage(CypherStrings.CommandWrongoldpassword);
|
||||||
|
|
||||||
Log.outInfo(LogFilter.Player, "Battle.net account: {0} (IP: {1}) Character:[{2}] ({3}) Tried to change password, but the provided old password is wrong.",
|
Log.outInfo(LogFilter.Player, "Battle.net account: {0} (IP: {1}) Character:[{2}] ({3}) Tried to change password, but the provided old password is wrong.",
|
||||||
handler.GetSession().GetAccountId(), handler.GetSession().GetRemoteAddress(), handler.GetSession().GetPlayer().GetName(), handler.GetSession().GetPlayer().GetGUID().ToString());
|
handler.GetSession().GetBattlenetAccountId(), handler.GetSession().GetRemoteAddress(), handler.GetSession().GetPlayer().GetName(), handler.GetSession().GetPlayer().GetGUID().ToString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1837,7 +1837,7 @@ namespace Game.Spells
|
|||||||
public virtual void Remove(AuraRemoveMode removeMode = AuraRemoveMode.Default) { }
|
public virtual void Remove(AuraRemoveMode removeMode = AuraRemoveMode.Default) { }
|
||||||
#region CallScripts
|
#region CallScripts
|
||||||
|
|
||||||
bool CallScriptCheckAreaTargetHandlers(Unit target)
|
bool CallScriptCheckAreaTargetHandlers(Unit target)
|
||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
foreach (var auraScript in m_loadedScripts)
|
foreach (var auraScript in m_loadedScripts)
|
||||||
|
|||||||
Reference in New Issue
Block a user