Mercurial > wow > ouroloot
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 63:00bf6d4f9238 | 64:359d0159d6ca |
|---|---|
| 723 --function addon:OnModuleCreated (plugin) | 723 --function addon:OnModuleCreated (plugin) |
| 724 -- print("created plugin", plugin:GetName()) | 724 -- print("created plugin", plugin:GetName()) |
| 725 --end | 725 --end |
| 726 | 726 |
| 727 local olrev = tonumber("@project-revision@") or 0 | 727 local olrev = tonumber("@project-revision@") or 0 |
| 728 local err = "Module '%s' did not load because it failed a required condition: '%s'" | 728 local err = [[Module '%s' cannot register itself because it failed a required condition: '%s']] |
| 729 function addon:ConstrainedNewModule (modname, minrev, mincomm, mindata) | 729 function addon:ConstrainedNewModule (modname, minrev, mincomm, mindata) |
| 730 if not addon.author_debug then | 730 if not addon.author_debug then |
| 731 if minrev and minrev < olrev then | 731 if minrev and minrev > olrev then |
| 732 self:Print(err,modname, | 732 self:Print(err,modname, |
| 733 "revision "..olrev.." older than minimum "..minrev) | 733 "revision "..olrev.." older than minimum "..minrev) |
| 734 return false | 734 return false |
| 735 end | 735 end |
| 736 if mincomm and mincomm < tonumber(self.commrev) then | 736 if mincomm and mincomm > tonumber(self.commrev) then |
| 737 self:Print(err,modname, | 737 self:Print(err,modname, |
| 738 "commrev "..self.commrev.." older than minimum "..mincomm) | 738 "commrev "..self.commrev.." older than minimum "..mincomm) |
| 739 return false | 739 return false |
| 740 end | 740 end |
| 741 if mindata and mindata < opts.datarev then | 741 if mindata and mindata > opts.datarev then |
| 742 self:Print(err,modname, | 742 self:Print(err,modname, |
| 743 "datarev "..opts.datarev.." older than minimum "..mindata) | 743 "datarev "..opts.datarev.." older than minimum "..mindata) |
| 744 return false | 744 return false |
| 745 end | 745 end |
| 746 end | 746 end |
