diff Main.lua @ 377:c78fe36fea84

Replaced debug output boolean/nil replacements with a simple 'tostring'.
author MMOSimca <MMOSimca@gmail.com>
date Wed, 26 Nov 2014 08:15:31 -0500
parents 4a4ed54e4201
children 8ca629ec7f57
line wrap: on
line diff
--- a/Main.lua	Sat Nov 22 20:09:07 2014 -0500
+++ b/Main.lua	Wed Nov 26 08:15:31 2014 -0500
@@ -14,8 +14,6 @@
 local select = _G.select
 local unpack = _G.unpack
 
-local LOOT_SLOT_CURRENCY, LOOT_SLOT_ITEM, LOOT_SLOT_MONEY = _G.LOOT_SLOT_CURRENCY, _G.LOOT_SLOT_ITEM, _G.LOOT_SLOT_MONEY
-
 
 -- ADDON NAMESPACE ----------------------------------------------------
 
@@ -50,6 +48,10 @@
 local PLAYER_NAME = _G.UnitName("player")
 local PLAYER_RACE = _G.select(2, _G.UnitRace("player"))
 
+local LOOT_SLOT_CURRENCY = _G.LOOT_SLOT_CURRENCY
+local LOOT_SLOT_ITEM = _G.LOOT_SLOT_ITEM
+local LOOT_SLOT_MONEY = _G.LOOT_SLOT_MONEY
+
 local TIMBER_ITEM_ID = 114781
 
 -- Ignoring NPC casts of the following spells
@@ -201,13 +203,7 @@
         local args = { ... }
 
         for index = 1, #args do
-            if args[index] == nil then
-                args[index] = "nil"
-            elseif args[index] == true then
-                args[index] = "true"
-            elseif args[index] == false then
-                args[index] = "false"
-            end
+            args[index] = tostring(args[index])
         end
         _G.print(message:format(unpack(args)))
     else