Quantcast

Add support for Chatter's Alt names. Will do more.

Scott Sibley [11-01-10 - 10:07]
Add support for Chatter's Alt names. Will do more.
Filename
Modules/UnitTooltip/UnitTooltip.lua
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 1cd3ed0..57b9dbc 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -464,6 +464,19 @@ return select(7, UnitGuildInfo(unit))
 ]],
 		enabled = true
 	},
+	[24] = {
+		name = "Main Name (requires Chatter)",
+		left = [[
+return "Main:"
+]],
+		right = [[
+if not _G.Chatter then self:Stop(); return end
+local mod = _G.Chatter:GetModule("Alt Linking")
+local name = UnitName(unit)
+return mod.db.realm[name]
+]],
+		enabled = true
+	}
 }

 local options = {}