Mercurial > wow > ouroloot
diff core.lua @ 64:359d0159d6ca
How did I ever earn a CS degree?
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 20 Apr 2012 04:41:10 +0000 |
parents | 00bf6d4f9238 |
children | 69fd720f853e |
line wrap: on
line diff
--- a/core.lua Fri Apr 20 04:14:36 2012 +0000 +++ b/core.lua Fri Apr 20 04:41:10 2012 +0000 @@ -725,20 +725,20 @@ --end local olrev = tonumber("@project-revision@") or 0 - local err = "Module '%s' did not load because it failed a required condition: '%s'" + local err = [[Module '%s' cannot register itself because it failed a required condition: '%s']] function addon:ConstrainedNewModule (modname, minrev, mincomm, mindata) if not addon.author_debug then - if minrev and minrev < olrev then + if minrev and minrev > olrev then self:Print(err,modname, "revision "..olrev.." older than minimum "..minrev) return false end - if mincomm and mincomm < tonumber(self.commrev) then + if mincomm and mincomm > tonumber(self.commrev) then self:Print(err,modname, "commrev "..self.commrev.." older than minimum "..mincomm) return false end - if mindata and mindata < opts.datarev then + if mindata and mindata > opts.datarev then self:Print(err,modname, "datarev "..opts.datarev.." older than minimum "..mindata) return false