From a6404312b965cf3fb88eb3fe3138e8e0d742979a Mon Sep 17 00:00:00 2001 From: Xruptor Date: Fri, 26 Nov 2010 10:39:19 -0500 Subject: [PATCH] -Fixed an issue with the client crashing when you try to send mail. (OOPS) --- xanAutoMail.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xanAutoMail.lua b/xanAutoMail.lua index 9a1b8b2..fff9678 100644 --- a/xanAutoMail.lua +++ b/xanAutoMail.lua @@ -63,7 +63,7 @@ function xanAutoMail:SendMailFrame_Reset() end --add the name to the history - SendMailNameEditBox:AddHistoryLine(name) + SendMailNameEditBox:AddHistoryLine(playerName) --add the name to our recent DB, first check to see if it's already there --if so then remove it, otherwise add it to the top of the list and remove the 11 entry from the table. @@ -74,14 +74,14 @@ function xanAutoMail:SendMailFrame_Reset() break end end - tinsert(DB_RECENT, 1, name) + tinsert(DB_RECENT, 1, playerName) for k = #DB_RECENT, 11, -1 do tremove(DB_RECENT, k) end self.hooks["SendMailFrame_Reset"]() - --set the name to the auto fill - SendMailNameEditBox:SetText(name) + -- set the name to the auto fill + SendMailNameEditBox:SetText(playerName) SendMailNameEditBox:HighlightText() end -- 1.7.9.5