EnhancedFriends: bandaid fix
This commit is contained in:
@@ -108,6 +108,10 @@ end
|
||||
function EFL:Update_Name(button)
|
||||
local isOffline = button.TYPE == "Offline" or false
|
||||
|
||||
if not button.TYPE or not self.db[button.TYPE] then
|
||||
button.TYPE = "Offline" -- bandaid
|
||||
end
|
||||
|
||||
local enhancedName = (self.db[button.TYPE].enhancedName and GetClassColorHex(button.class, isOffline)..button.nameText.."|r" or button.nameText)
|
||||
local enhancedLevel = self.db[button.TYPE].level and button.levelText and format(self.db[button.TYPE].levelText and (self.db[button.TYPE].shortLevel and L["SHORT_LEVEL_TEMPLATE"] or L["LEVEL_TEMPLATE"]) or "%s", self.db[button.TYPE].levelColor and GetLevelDiffColorHex(button.levelText, isOffline)..button.levelText.."|r" or button.levelText).." " or ""
|
||||
local enhancedClass = self.db[button.TYPE].classText and button.class or ""
|
||||
|
||||
Reference in New Issue
Block a user