From 5e488681d4cc4e4c7217caeab3254cbd8a4760a5 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 11 May 2019 16:34:22 +0100 Subject: modulemanager: use get_version to get the InspIRCd version. --- modulemanager | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modulemanager b/modulemanager index 50a86a7f7..2c559c0a4 100755 --- a/modulemanager +++ b/modulemanager @@ -123,8 +123,8 @@ while () { 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 => [], -- cgit v1.2.3