aboutsummaryrefslogtreecommitdiff
path: root/util/master/master.cgi
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-08-05 01:36:04 +0400
committerproller <proller@github.com>2013-08-05 01:50:34 +0400
commit2336d21efd659d0f47abde26f906b5fbb26b1d65 (patch)
treebc0e00e0b75534732a286a448860e37ed88441fa /util/master/master.cgi
parent314e4dd4a60b953035be42a642f7b38f88d07df9 (diff)
downloadminetest-2336d21efd659d0f47abde26f906b5fbb26b1d65.tar.gz
minetest-2336d21efd659d0f47abde26f906b5fbb26b1d65.tar.bz2
minetest-2336d21efd659d0f47abde26f906b5fbb26b1d65.zip
Master server script improvement
Diffstat (limited to 'util/master/master.cgi')
-rwxr-xr-xutil/master/master.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/master/master.cgi b/util/master/master.cgi
index cb4d164c4..bf627a989 100755
--- a/util/master/master.cgi
+++ b/util/master/master.cgi
@@ -235,7 +235,10 @@ sub request (;$) {
$param->{first} ||= $old->{first} || $old->{time} || $param->{time};
$param->{clients_top} = $old->{clients_top} if $old->{clients_top} > $param->{clients};
$param->{clients_top} ||= $param->{clients} || 0;
- $param->{mods} ||= $old->{mods} if $old->{mods} and !($param->{action} ~~ 'start');
+ # params reported once on start, must be same as src/serverlist.cpp:~221 if(server["action"] == "start") { ...
+ for (qw(dedicated rollback liquid_finite mapgen mods)) {
+ $param->{$_} ||= $old->{$_} if $old->{$_} and !($param->{action} ~~ 'start');
+ }
delete $param->{action};
$listk->{$param->{key}} = $param;
#printlog Dumper $param;