diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_version.c | 5 | ||||
-rw-r--r-- | src/modules.c | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/mod_version.c b/src/mod_version.c index f8327d54f..deff53f97 100644 --- a/src/mod_version.c +++ b/src/mod_version.c @@ -22,7 +22,10 @@ extern "C" int getAnopeBuildVersion() { +#if 0 return VERSION_BUILD; +#endif + return 0; // XXX } int getAnopeMajorVersion() @@ -39,4 +42,4 @@ extern "C" { return VERSION_PATCH; } -}
\ No newline at end of file +} 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 } } } |