The bug occur when listing libraries that have a special __index handler through their metatable (mostly BabbleLib libraries)
diff for a possible correction follows :
--- D:\temp\ace\Ace2\AceAddon-2.0\AceAddon-2.0.lua Mon Sep 11 14:55:56 2006
+++ D:\World of Warcraft\Interface\Addons\!!!Libraries\Libs\AceAddon-2.0\AceAddon-2.0.lua Mon Sep 25 13:51:08 2006
@@ -558,8 +558,9 @@
else
s = " - " .. tostring(name)
end
- if AceLibrary(name).slashCommand then
- s = s .. " |cffffff7f(" .. tostring(AceLibrary(name).slashCommand) .. "|cffffff7f)"
+ local cmd = rawget(AceLibrary(name), "slashCommand")
+ if cmd then
+ s = s .. " |cffffff7f(" .. tostring(cmd) .. "|cffffff7f)"
end
print(s)
end
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
diff for a possible correction follows :