bugfix
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user