Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirsig committed Jun 4, 2019
1 parent 2c58c0c commit 27ae17e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Mail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,6 @@ function UI_ERROR_MESSAGE()
end
end

orig = {}
do
local hooks = {}
hook = setmetatable({}, {__newindex=function(_, k, v) hooks[k] = v end})
function PLAYER_LOGIN()
for k, v in hooks do
orig[k] = _G[k]
_G[k] = v
end
local key = GetCVar'realmName' .. '|' .. UnitFactionGroup'player'
Mail_AutoCompleteNames[key] = Mail_AutoCompleteNames[key] or {}
for char, lastSeen in Mail_AutoCompleteNames[key] do
if GetTime() - lastSeen > 60 * 60 * 24 * 30 then
Mail_AutoCompleteNames[key][char] = nil
end
end
Mail_AutoCompleteNames[key][UnitName'player'] = GetTime()
end
end

orig = {}
do
local hooks = {}
Expand Down

0 comments on commit 27ae17e

Please sign in to comment.