refactoring
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ do
|
||||
local time = 0
|
||||
function private.next_push.get()
|
||||
if time() > time then
|
||||
local date = date '*t'
|
||||
local date = date('*t')
|
||||
date.hour, date.min, date.sec = 24, 0, 0
|
||||
time = time(date)
|
||||
end
|
||||
|
||||
+3
-3
@@ -51,7 +51,7 @@ function _G.SlashCmdList.AUX(command)
|
||||
_G.aux_ignore_owner = not _G.aux_ignore_owner
|
||||
log('Ignoring of owner '..(_G.aux_ignore_owner and 'enabled' or 'disabled')..'.')
|
||||
elseif arguments[1] == 'chars' and arguments[2] == 'add' then
|
||||
local realm = GetCVar 'realmName'
|
||||
local realm = GetCVar('realmName')
|
||||
_G.aux_characters[realm] = _G.aux_characters[realm] or {}
|
||||
for i = 3, getn(arguments) do
|
||||
local name = gsub(strlower(arguments[i]), '^%l', strupper)
|
||||
@@ -61,7 +61,7 @@ function _G.SlashCmdList.AUX(command)
|
||||
end
|
||||
end
|
||||
elseif arguments[1] == 'chars' and arguments[2] == 'remove' then
|
||||
local realm = GetCVar 'realmName'
|
||||
local realm = GetCVar('realmName')
|
||||
if not _G.aux_characters[realm] then
|
||||
return
|
||||
end
|
||||
@@ -73,7 +73,7 @@ function _G.SlashCmdList.AUX(command)
|
||||
end
|
||||
end
|
||||
elseif arguments[1] == 'chars' then
|
||||
local realm = GetCVar 'realmName'
|
||||
local realm = GetCVar('realmName')
|
||||
local chars = {}
|
||||
for name in _G.aux_characters[realm] or {} do
|
||||
tinsert(chars, name)
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ function LOAD()
|
||||
return unpack(ret)
|
||||
end)
|
||||
end
|
||||
local orig = GameTooltip:GetScript 'OnTooltipAddMoney'
|
||||
local orig = GameTooltip:GetScript('OnTooltipAddMoney')
|
||||
GameTooltip:SetScript('OnTooltipAddMoney', function(...) temp=arg
|
||||
if inside_hook then
|
||||
game_tooltip_money = arg1
|
||||
|
||||
Reference in New Issue
Block a user