diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-12 21:48:40 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-12 21:48:40 +0000 |
commit | ee5de492f765f02b09fee772540017fb5ea1007e (patch) | |
tree | ce2c80ecf8f19b2ccef62ad6c90b97b47b6c9c45 /src/modules.c | |
parent | 61ad72831ef31065b31a49908bab487dcf6cc54f (diff) |
BUILD : 1.7.5 (391) BUGS : N/A NOTES : Code tidy, added make strict to the makefile, allowing ansi Wall pedantic to be used for compiling
git-svn-id: svn://svn.anope.org/anope/trunk@391 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@256 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules.c b/src/modules.c index ad5da8034..f764fab1d 100644 --- a/src/modules.c +++ b/src/modules.c @@ -2003,18 +2003,18 @@ void moduleCleanStruct(ModuleData **moduleData) { **/ boolean moduleMinVersion(int major,int minor,int patch,int build) { boolean ret=false; - if(VERSION_MAJOR>major) { // Def. new + if(VERSION_MAJOR>major) { /* Def. new */ ret = true; - } else if(VERSION_MAJOR == major) { // Might be newer - if(minor == -1) { return true; } // They dont care about minor - if(VERSION_MINOR > minor) { // Def. newer + } else if(VERSION_MAJOR == major) { /* Might be newer */ + if(minor == -1) { return true; } /* They dont care about minor */ + if(VERSION_MINOR > minor) { /* Def. newer*/ ret = true; - } else if(VERSION_MINOR == minor) { // Might be newer - if(patch == -1) { return true; } // They dont care about patch + } else if(VERSION_MINOR == minor) { /* Might be newer */ + if(patch == -1) { return true; } /* They dont care about patch */ if(VERSION_PATCH > patch) { ret = true; } else if(VERSION_PATCH == patch) { - if(build == -1) { return true; } // They dont care about build + if(build == -1) { return true; } /* They dont care about build */ if(VERSION_BUILD >= build) { ret = true; } |