From 9e6c986a5588b3d16a0bd0e5be91c3883b05e293 Mon Sep 17 00:00:00 2001 From: special Date: Mon, 4 Dec 2006 04:12:32 +0000 Subject: Added ./inspircd version, requested and written by Mitch git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5839 e03df62e-2008-0410-955e-edbf42e46eb7 --- .inspircd.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.inspircd.inc') diff --git a/.inspircd.inc b/.inspircd.inc index d1ea383a3..661df8eb9 100644 --- a/.inspircd.inc +++ b/.inspircd.inc @@ -67,6 +67,12 @@ if ($arg eq "restart") { exit(); } +if ($arg eq "version") { + system("sh src/version.sh"); + system("svn info | grep Revision"); + exit(); +} + if ($arg eq "Cheese-Sandwich") { print "Creating Cheese Sandwich..\n"; print "Done.\n"; @@ -77,7 +83,7 @@ if ($arg eq "Cheese-Sandwich") { # If we get here.. bad / no parameters. ### print "Invalid Argument: $arg\n"; -print "Usage: inspircd (start|stop|restart|rehash|status|cron)\n"; +print "Usage: inspircd (start|stop|restart|rehash|status|cron|version)\n"; exit(); ### -- cgit v1.2.3