aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/MasterWebInterface/Handler/ServInfo.pm8
-rwxr-xr-xlib/MasterWebInterface/Handler/Tools/Version.pm4
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/MasterWebInterface/Handler/ServInfo.pm b/lib/MasterWebInterface/Handler/ServInfo.pm
index 3987e8c..8adf8c9 100755
--- a/lib/MasterWebInterface/Handler/ServInfo.pm
+++ b/lib/MasterWebInterface/Handler/ServInfo.pm
@@ -94,8 +94,12 @@ sub show_server {
# get prefix and mapname
my $mapname = lc $info->{mapname};
- my ($pre,$post) = $mapname =~ /^(DM|CTF\-BT|BT|CTF|DOM|AS|JB|TO|SCR|MH)-(.*)/i;
- my $prefix = ($pre ? uc $pre : "other");
+ my ($pre,$post);
+ ($pre,$post) = $mapname =~ /^(DM|CTF\-BT|BT|CTF|DOM|AS|JB|TO|SCR|MH)-(.*)/i if ($info->{gamename} eq "ut");
+ ($pre,$post) = $mapname =~ /^(as|ar|coop|coop\d+|ctt|dk|dm|hb|nd)-(.*)/i if ($info->{gamename} eq "rune");
+
+ $pre =~ s/(coop\d+)/coop/i;
+ my $prefix = ($pre ? uc $pre : "other");
# if map figure exists, use it
if (-e "$self->{map_dir}/$info->{gamename}/$prefix/$mapname.jpg") {
diff --git a/lib/MasterWebInterface/Handler/Tools/Version.pm b/lib/MasterWebInterface/Handler/Tools/Version.pm
index db306a1..5a9c9cd 100755
--- a/lib/MasterWebInterface/Handler/Tools/Version.pm
+++ b/lib/MasterWebInterface/Handler/Tools/Version.pm
@@ -30,8 +30,8 @@ sub version {
p "This MasterServer Interface has the following version information:";
table;
Tr; td "build_type"; td "333networks Masterserver Web Interface ";end;
- Tr; td "build_version"; td "3.0.1";end;
- Tr; td "build_date"; td "2017-09-27";end;
+ Tr; td "build_version"; td "3.0.2";end;
+ Tr; td "build_date"; td "2017-11-05";end;
Tr; td "build_author"; td "Darkelarious, darkelarious\@333networks.com";end;
end;