summaryrefslogtreecommitdiff
path: root/modulemanager
diff options
context:
space:
mode:
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 => [],