This commit is contained in:
hondacrx
2017-07-10 11:21:03 -04:00
parent c0cfdb66df
commit b158c764ae
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
} }
+1 -1
View File
@@ -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)