From 50f03af432ff08e33b038f9a632be42ec9c2a3f5 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 30 Aug 2012 14:34:37 +0200 Subject: [PATCH] Use double underscore to avoid tainting blizzard --- oUF_Reputation.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua index 46d1bc1..ebc55db 100644 --- a/oUF_Reputation.lua +++ b/oUF_Reputation.lua @@ -1,4 +1,4 @@ -local _, ns = ... +local __, ns = ... local oUF = ns.oUF or oUF assert(oUF, 'oUF Reputation was unable to locate oUF install') @@ -6,19 +6,19 @@ local development = oUF.version == '1.6.0' for tag, func in pairs({ ['currep'] = function() - local _, _, min, _, value = GetWatchedFactionInfo() + local __, __, min, __, value = GetWatchedFactionInfo() return value - min end, ['maxrep'] = function() - local _, _, min, max = GetWatchedFactionInfo() + local __, __, min, max = GetWatchedFactionInfo() return max - min end, ['perrep'] = function() - local _, _, min, max, value = GetWatchedFactionInfo() + local __, __, min, max, value = GetWatchedFactionInfo() return math.floor((value - min) / (max - min) * 100 + 0.5) end, ['standing'] = function() - local _, standing = GetWatchedFactionInfo() + local __, standing = GetWatchedFactionInfo() return GetText('FACTION_STANDING_LABEL' .. standing, UnitSex('player')) end, ['reputation'] = function() -- 1.7.9.5