Skip to content

Commit a70993d

Browse files
committedJul 13, 2013
Masterserver mods fix
1 parent 0a2de78 commit a70993d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎util/master/list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function success(r) {
5151
h += '<td class="mts_clients">' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + s.clients_top : '') + '</td>';
5252
var mods;
5353
if (s.mods && jQuery.isArray(s.mods)) {
54-
mods = 1;
54+
mods = s.mods.length;
5555
}
5656
h += '<td class="mts_version' + (mods ? ' mts_ismods' : '') + '">' + e(s.version) + ' ' + e(s.gameid);
5757
if (mods) {

‎util/master/master.cgi

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ sub request (;$) {
235235
$param->{first} ||= $old->{first} || $old->{time} || $param->{time};
236236
$param->{clients_top} = $old->{clients_top} if $old->{clients_top} > $param->{clients};
237237
$param->{clients_top} ||= $param->{clients} || 0;
238-
$param->{mods} ||= $old->{mods} unless $param->{action} ~~ 'start';
238+
$param->{mods} ||= $old->{mods} if $old->{mods} and !($param->{action} ~~ 'start');
239239
delete $param->{action};
240240
$listk->{$param->{key}} = $param;
241241
#printlog Dumper $param;

0 commit comments

Comments
 (0)
Please sign in to comment.