autocomplete after gquit fix

This commit is contained in:
Manuel Simon Hirsig
2017-01-18 19:59:04 +01:00
parent 871a2f8289
commit f0000b4d07
+5 -3
View File
@@ -818,10 +818,12 @@ do
local ignore = {[UnitName'player']=true}
local function process(name)
if name and not ignore[name] and strfind(strupper(name), strupper(input), nil, true) == 1 then
tinsert(matches, name)
if name then
if not ignore[name] and strfind(strupper(name), strupper(input), nil, true) == 1 then
tinsert(matches, name)
end
ignore[name] = true
end
ignore[name] = true
end
for character in Postal_Characters[GetCVar'realmName' .. '|' .. UnitFactionGroup'player'] do
process(character)