greent refactoring
This commit is contained in:
+10
-10
@@ -1,6 +1,6 @@
|
||||
module 'aux.core.slash'
|
||||
|
||||
include 'green_t'
|
||||
include 'green_T'
|
||||
include 'aux'
|
||||
|
||||
local persistence = require 'aux.util.persistence'
|
||||
@@ -19,18 +19,18 @@ function SlashCmdList.AUX(command)
|
||||
persistence.dataset.post = nil
|
||||
print('Post settings cleared.')
|
||||
elseif arguments[1] == 'clear' and arguments[2] == 'datasets' then
|
||||
_G.aux_datasets = t
|
||||
_G.aux_datasets = T
|
||||
print('Datasets cleared.')
|
||||
elseif arguments[1] == 'clear' and arguments[2] == 'merchant' and arguments[3] == 'buy' then
|
||||
_G.aux_merchant_buy = t
|
||||
_G.aux_merchant_buy = T
|
||||
print('Merchant buy prices cleared.')
|
||||
elseif arguments[1] == 'clear' and arguments[2] == 'merchant' and arguments[3] == 'sell' then
|
||||
_G.aux_merchant_sell = t
|
||||
_G.aux_merchant_sell = T
|
||||
print('Merchant sell prices cleared.')
|
||||
elseif arguments[1] == 'clear' and arguments[2] == 'item' and arguments[3] == 'cache' then
|
||||
_G.aux_items = t
|
||||
_G.aux_item_ids = t
|
||||
_G.aux_auctionable_items = t
|
||||
_G.aux_items = T
|
||||
_G.aux_item_ids = T
|
||||
_G.aux_auctionable_items = T
|
||||
print('Item cache cleared.')
|
||||
elseif arguments[1] == 'populate' and arguments[2] == 'wdb' then
|
||||
cache.populate_wdb()
|
||||
@@ -60,7 +60,7 @@ function SlashCmdList.AUX(command)
|
||||
print('Ignoring of owner ' .. (aux_ignore_owner and 'enabled' or 'disabled') .. '.')
|
||||
elseif arguments[1] == 'chars' and arguments[2] == 'add' then
|
||||
local realm = GetCVar'realmName'
|
||||
aux_characters[realm] = aux_characters[realm] or t
|
||||
aux_characters[realm] = aux_characters[realm] or T
|
||||
for i = 3, getn(arguments) do
|
||||
local name = gsub(strlower(arguments[i]), '^%l', strupper)
|
||||
if not aux_characters[realm][name] then
|
||||
@@ -82,8 +82,8 @@ function SlashCmdList.AUX(command)
|
||||
end
|
||||
elseif arguments[1] == 'chars' then
|
||||
local realm = GetCVar'realmName'
|
||||
local chars = t
|
||||
for name in aux_characters[realm] or t do
|
||||
local chars = T
|
||||
for name in aux_characters[realm] or T do
|
||||
tinsert(chars, name)
|
||||
end
|
||||
if getn(chars) > 0 then
|
||||
|
||||
Reference in New Issue
Block a user