diff options
-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; } |