From 685861f2bd0e30d7dcf74ff4cb97fd77e73d8463 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 1 Feb 2007 20:12:20 +0000 Subject: 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 --- configure | 4 +--- src/inspircd.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 6b736e92e..aa1959e57 100755 --- a/configure +++ b/configure @@ -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; } -- cgit v1.2.3