I made the following change to myAddOns to make it more forgiving about color information. Posted this on the myAddOns thread also.
--- myAddOnsFrame.lua.org 2006-01-14 17:10:42.000000000 +0100
+++ myAddOnsFrame.lua 2006-08-14 12:07:21.046875000 +0200
@@ -886,16 +886,20 @@
addonHelp.currentPage = 1;
end
+ -- remove any color information from the name
+ local cleanname = string.gsub(string.gsub(addonDetails.name,"%|c%x%x%x%x%x%x%x%x",""),"%|r","")
-- Get the addon
- local addon = myAddOnsAddOns[addonDetails.name];
+ local addon = myAddOnsAddOns[cleanname];
-- Check if the addon name is valid
if (not addon) then
-- Browse the installed addons
for addonIndex = 1, GetNumAddOns(), 1 do
local name, title, notes, enabled, loadable, reason, security = GetAddOnInfo(addonIndex);
+ -- remove any color information before we compare
+ local cleantitle = string.gsub(string.gsub(title,"%|c%x%x%x%x%x%x%x%x",""),"%|r","")
-- Check if there is an addon with this title
- if (title == addonDetails.name) then
+ if ( cleantitle == cleanname ) then
addon = myAddOnsAddOns[name];
break;
end
|