summaryrefslogtreecommitdiff
path: root/modulemanager
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-05-11 16:34:22 +0100
committerPeter Powell <petpow@saberuk.com>2019-05-12 11:51:05 +0100
commit5e488681d4cc4e4c7217caeab3254cbd8a4760a5 (patch)
treedbb505d29fb05015262a5e38016980de38c52eb5 /modulemanager
parent2cc524a1c6aa7af22e4c68232c5d6206c70ded4e (diff)
modulemanager: use get_version to get the InspIRCd version.
Diffstat (limited to 'modulemanager')
-rwxr-xr-xmodulemanager6
1 files changed, 3 insertions, 3 deletions
diff --git a/modulemanager b/modulemanager
index 50a86a7f7..2c559c0a4 100755
--- 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 => [],