Quantcast

* Removed a number of debug procedures

James Whitehead II [05-20-07 - 15:46]
* Removed a number of debug procedures
Filename
Clique.lua
CliqueUtils.lua
Localization.de.lua
diff --git a/Clique.lua b/Clique.lua
index 7362b8d..0c89071 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -15,56 +15,20 @@ function Clique:Initialize()
 	CliqueDB = CliqueDB or {}
 	local sv = CliqueDB

-	if CliqueDB.global then
-		if CliqueDB.global.sv_converted then
-			CliqueDB.global.sv_converted = nil
-			CliqueDB.global.sv_version = self.rev
-		elseif CliqueDB.global.sv_version > self.rev then
-			-- Got the bad rev number, revert
-			CliqueDB.global.sv_version = self.rev
-		elseif CliqueDB.global.sv_version < 73 then
-			-- We do this once, to make sure we catch everyone from
-			-- the last version of CliqueDB
-			self:Print("You're upgrading from an old version of Clique")
-			CliqueDB = {}
-			self:Print("All settings have been set to default")
-		end
-	end
-
-	if not sv.global then sv.global = {} end
-
-	if sv and not sv.global.sv_converted then
-		if sv.char then
-			local converted = {}
-			for key,entry in pairs(sv.char) do
-				local char,server = key:match("^(.+) of (.+)$")
-				if char then
-					local new_key = ("%s - %s"):format(char, server)
-					converted[new_key] = entry
-				else
-					converted[key] = entry
-				end
-			end
-			sv.char = converted
-		end
-
-		if sv.profileKeys then
-			local converted = {}
-			for ukey,pkey in pairs(sv.profileKeys) do
-				-- Update each user key
-				local char,server = ukey:match("^(.+) of (.+)$")
-				if char then
-					local new_key = ("%s - %s"):format(char, server)
-					converted[new_key] = pkey
-				else
-					converted[key] = entry
-				end
-			end
-			sv.profileKeys = converted
-		end
-
-		if not sv.global then sv.global = {} end
-		sv.global.sv_converted = true
+	CliqueDB.global = CliqueDB.global or {}
+
+	if CliqueDB.global.sv_converted then
+		CliqueDB.global.sv_converted = nil
+		CliqueDB.global.sv_version = self.rev
+	elseif CliqueDB.global.sv_version > self.rev then
+		-- Got the bad rev number, revert
+		CliqueDB.global.sv_version = self.rev
+	elseif CliqueDB.global.sv_version < 73 then
+		-- We do this once, to make sure we catch everyone from
+		-- the last version of CliqueDB
+		self:Print("You're upgrading from an old version of Clique")
+		CliqueDB = {}
+		self:Print("All settings have been set to default")
 	end
 end

diff --git a/CliqueUtils.lua b/CliqueUtils.lua
index d84a5f3..e508152 100644
--- a/CliqueUtils.lua
+++ b/CliqueUtils.lua
@@ -28,7 +28,6 @@ function Clique:GetModifierText()
 end

 function Clique:GetButtonNumber(button)
-	Clique:Print("GetButtonNumber", button)
     if not button then return "" end
     return buttonMap[arg1] or ""
 end
diff --git a/Localization.de.lua b/Localization.de.lua
index 28d7e91..9d72b38 100644
--- a/Localization.de.lua
+++ b/Localization.de.lua
@@ -4,7 +4,7 @@

 local L = Clique.Locals

-if GetLocale() == "deDE" or true then
+if GetLocale() == "deDE" then
 	L.RANK                    = "Rang"
 	L.RANK_PATTERN            = "Rang (%d+)"
 	L.CAST_FORMAT             = "%s(Rang %s)"