summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_version.c5
-rw-r--r--src/modules.c13
-rw-r--r--version.log8
3 files changed, 21 insertions, 5 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
}
}
}
diff --git a/version.log b/version.log
index 4efe55f43..0c2765ca2 100644
--- a/version.log
+++ b/version.log
@@ -6,10 +6,10 @@
# $Id$
VERSION_MAJOR="1"
-VERSION_MINOR="7"
-VERSION_PATCH="22"
-VERSION_EXTRA="-svn"
-VERSION_BUILD="1462"
+VERSION_MINOR="9"
+VERSION_PATCH="0"
+VERSION_EXTRA="-git"
+VERSION_BUILD=""
# $Log$
#