diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-04 04:12:32 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-04 04:12:32 +0000 |
commit | 9e6c986a5588b3d16a0bd0e5be91c3883b05e293 (patch) | |
tree | 0993eda3eb870fd742e44516e30eba859aa1baa8 /.inspircd.inc | |
parent | a623bf2363adaf5cb803aef6cde1372893bd892f (diff) |
Added ./inspircd version, requested and written by Mitch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5839 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to '.inspircd.inc')
-rw-r--r-- | .inspircd.inc | 8 |
1 files changed, 7 insertions, 1 deletions
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(); ### |