refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-28 03:00:16 +02:00
parent f42e54a4fc
commit c07c3dad6f
16 changed files with 92 additions and 92 deletions
+3 -3
View File
@@ -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)