diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-01 20:12:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-01 20:12:20 +0000 |
commit | 685861f2bd0e30d7dcf74ff4cb97fd77e73d8463 (patch) | |
tree | 41e0d67cd4293945d1c2356668e19b84403b1240 | |
parent | 3102dedbb8a4bf4b0263715d507e3603cf048711 (diff) |
Change the way versions are displayed by connect and /version so that its more friendly to searchirc's spider ;)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6474 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | src/inspircd.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -921,9 +921,7 @@ sub writefiles { my($writeheader) = @_; # First File.. inspircd_config.h chomp(my $incos = `uname -n -s -r`); - chomp(my $version = `sh ./src/version.sh`); - chomp(my $revision = getrevision()); - $version = "$version(r$revision)"; + chomp($version = `sh src/version.sh`); chomp(my $revision2 = getrevision()); if ($writeheader == 1) { diff --git a/src/inspircd.cpp b/src/inspircd.cpp index ce083b3b9..93ce426a7 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -440,7 +440,7 @@ std::string InspIRCd::GetVersionString() } else { - snprintf(versiondata,MAXBUF,"%s %s :%s [FLAGS=%lu,%s,%s]",VERSION,Config->ServerName,SYSTEM,(unsigned long)OPTIMISATION,SE->GetName().c_str(),dnsengine); + snprintf(versiondata,MAXBUF,"%s %s :%s [FLAGS=%s,%s,%s]",VERSION,Config->ServerName,SYSTEM,REVISION,SE->GetName().c_str(),dnsengine); } return versiondata; } |