changed version numbering (separate stable and dev versions)
[NeonServV5.git] / src / modules / global.mod / cmd_global_version.c
index faa03ac9f55f6543e049821ae0b6b14e471d5b5d..77ccb748f620c91236fc06b7a8386092a03d56cd 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 CMD_BIND(global_cmd_version) {
-    reply(textclient, user, "\002NeonServ %s.%d\002 (%s), written by pk910", NEONSERV_VERSION, get_patchlevel(), (strcmp(get_revision(), "") ? get_revision() : "-"));
+    reply(textclient, user, "\002NeonServ %s.%d %s\002 (%s), written by pk910", NEONSERV_VERSION, get_patchlevel(), (is_stable_revision() ? "(stable)" : "(dev)"), (is_stable_revision() ? (strcmp(get_revision(), "") ? get_revision() : "-") : get_dev_revision()));
     reply(textclient, user, "Build (#%s) %s (%s lines, " COMPILER ")", get_compilation(), get_creation(), get_codelines());
     reply(textclient, user, "NeonServ can be found on: http://dev.pk910.de/NeonServ");
     //helpers :D