Skip to content

Commit

Permalink
Masterserver mods fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Jul 13, 2013
1 parent 0a2de78 commit a70993d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/master/list.js
Expand Up @@ -51,7 +51,7 @@ function success(r) {
h += '<td class="mts_clients">' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + s.clients_top : '') + '</td>';
var mods;
if (s.mods && jQuery.isArray(s.mods)) {
mods = 1;
mods = s.mods.length;
}
h += '<td class="mts_version' + (mods ? ' mts_ismods' : '') + '">' + e(s.version) + ' ' + e(s.gameid);
if (mods) {
Expand Down
2 changes: 1 addition & 1 deletion util/master/master.cgi
Expand Up @@ -235,7 +235,7 @@ 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} unless $param->{action} ~~ 'start';
$param->{mods} ||= $old->{mods} if $old->{mods} and !($param->{action} ~~ 'start');
delete $param->{action};
$listk->{$param->{key}} = $param;
#printlog Dumper $param;
Expand Down

0 comments on commit a70993d

Please sign in to comment.