Fix logic of version check on module load.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@27 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1325,7 +1325,7 @@ unsigned long major, minor, need_major, need_minor;
|
||||
minor = (bitchx_numver / 100) % 100;
|
||||
need_major = required / 10000;
|
||||
need_minor = (required / 100) % 100;
|
||||
if (major >= need_major && minor >= need_minor)
|
||||
if ((major > need_major) || (major == need_major && minor >= need_minor))
|
||||
return 1;
|
||||
return INVALID_MODVERSION;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user