diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-03 23:28:12 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-03 23:28:12 +0000 |
commit | f85457d2a4389d3709ed88ee75d906ad544a1f3d (patch) | |
tree | fe59cd50f0846f82a4617f7e546973e3ebcfa877 /src/modules.c | |
parent | 6b7161fbdff30af0519730ba75e75bf82786597d (diff) |
Merge branch 'anopeng' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1410 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules.c b/src/modules.c index 55c82d818..ebf19c9f1 100644 --- a/src/modules.c +++ b/src/modules.c @@ -618,6 +618,12 @@ int loadModule(Module * m, User * u) return MOD_ERR_NOLOAD; } if (func) { + +/* + * Commented out, as VERSION_BUILD doesn't currently actually work. + * We need a nicer way to do this. -- w00t + */ +#if 0 version = (int (*)())ano_modsym(m->handle,"getAnopeBuildVersion"); if (version) { if (version() >= VERSION_BUILD ) { @@ -631,6 +637,10 @@ int loadModule(Module * m, User * u) ano_modclearerr(); return MOD_ERR_NOLOAD; } +#else + // hack. + if (1) { +#endif } else { ano_modclose(m->handle); ano_modclearerr(); @@ -2379,12 +2389,15 @@ bool moduleMinVersion(int major, int minor, int patch, int build) if (VERSION_PATCH > patch) { ret = true; } else if (VERSION_PATCH == patch) { +#if 0 +// XXX if (build == -1) { return true; } /* They dont care about build */ if (VERSION_BUILD >= build) { ret = true; } +#endif } } } |