]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
server: Include git version in output of com_si().
authorAndre Noll <maan@systemlinux.org>
Tue, 15 Mar 2011 20:07:42 +0000 (21:07 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 15 Mar 2011 20:07:42 +0000 (21:07 +0100)
It is often useful to be able to find out which version of para_server
is currently running.

command.c

index f9ef6cd75ab8733408d3c2542230ae806281bf85..5217f9b487cd260aebe5d5a986f4fd8e957b0270 100644 (file)
--- a/command.c
+++ b/command.c
@@ -255,7 +255,8 @@ int com_si(struct rc4_context *rc4c, int argc, __a_unused char * const * argv)
                free(info);
        }
        ut = uptime_str();
-       ret = rc4_send_va_buffer(rc4c, "up: %s\nplayed: %u\n"
+       ret = rc4_send_va_buffer(rc4c, "version: " GIT_VERSION "\n"
+               "up: %s\nplayed: %u\n"
                "server_pid: %d\n"
                "afs_pid: %d\n"
                "connections (active/accepted/total): %u/%u/%u\n"