inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 5e488681d4cc4e4c7217caeab3254cbd8a4760a5
parent 2cc524a1c6aa7af22e4c68232c5d6206c70ded4e
Author: Peter Powell <petpow@saberuk.com>
Date:   Sat, 11 May 2019 16:34:22 +0100

modulemanager: use get_version to get the InspIRCd version.

Diffstat:
Mmodulemanager | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modulemanager b/modulemanager @@ -123,8 +123,8 @@ while (<SRC>) { close SRC; # determine core version -`./src/version.sh` =~ /InspIRCd-([0-9.]+)/ or die "Cannot determine inspircd version"; -$installed{core} = $1; +my %version = get_version(); +$installed{core} = "$version{MAJOR}.$version{MINOR}.$version{PATCH}"; for my $mod (keys %modules) { MODVER: for my $mver (keys %{$modules{$mod}}) { for my $dep (@{$modules{$mod}{$mver}{depends}}) { @@ -137,7 +137,7 @@ for my $mod (keys %modules) { } delete $modules{$mod} unless %{$modules{$mod}}; } -$modules{core}{$1} = { +$modules{core}{$installed{core}} = { url => 'NONE', depends => [], conflicts => [],