# HG changeset patch # User Flick # Date 1207255091 0 # Node ID 52ac6db0c8ca01f9ed59fed1edfe4cf725408fd3 # Parent a4620a29a9cb8cf1c5bdfa23925ac621347a0d73 changed version print to include revision. diff -r a4620a29a9cb -r 52ac6db0c8ca ReAction.lua --- a/ReAction.lua Thu Apr 03 20:27:25 2008 +0000 +++ b/ReAction.lua Thu Apr 03 20:38:11 2008 +0000 @@ -15,14 +15,16 @@ ------ DEBUGGING ------ ReAction.debug = true +local dbprint if ReAction.debug then - ReAction.print = function(msg) + dbprint = function(msg) DEFAULT_CHAT_FRAME:AddMessage(msg) end - --seterrorhandler(ReAction.print) + --seterrorhandler(dbprint) else - ReAction.print = function() end + dbprint = function() end end +ReAction.dbprint = dbprint ------ LIBRARIES ------ local L = LibStub("AceLocale-3.0"):GetLocale("ReAction") @@ -117,8 +119,12 @@ LoadAddOn("ReAction_ConfigUI") m = ReAction:GetModule("ConfigUI") end - if m and type(m) == "table" and type(m[method]) == "function" then - m[method](m,...) + if m then + if type(m) == "table" and type(m[method]) == "function" then + m[method](m,...) + else + dbprint(("Bad call '%s' to options module"):format(tostring(method))); + end else ReAction:Print("Options module not found") end @@ -132,7 +138,7 @@ elseif option == "lock" then ReAction:SetConfigMode(false) else - ReAction:Print(ReAction.version) + ReAction:Print(("%3.1f.%d"):format(ReAction.version,ReAction.revision)) ReAction:Print("/reaction config") ReAction:Print("/reaction unlock") ReAction:Print("/reaction lock")