From 0a2de78da418c7cdeb1cf9b898d049100804fb29 Mon Sep 17 00:00:00 2001 From: proller Date: Sat, 13 Jul 2013 00:37:28 +0400 Subject: Better masterserver html --- util/master/list.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'util/master/list.js') diff --git a/util/master/list.js b/util/master/list.js index c414a92b4..9e033b609 100644 --- a/util/master/list.js +++ b/util/master/list.js @@ -49,8 +49,12 @@ function success(r) { h += ''; h += '' + e(s.address) + (s.port != 30000 ? (':' + e(s.port)) : '') + ''; h += '' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + s.clients_top : '') + ''; - h += '' + e(s.version) + ' ' + e(s.gameid); + var mods; if (s.mods && jQuery.isArray(s.mods)) { + mods = 1; + } + h += '' + e(s.version) + ' ' + e(s.gameid); + if (mods) { h += '
Mods:
'; for (m in s.mods) { h += s.mods[m] + '
'; -- cgit v1.2.3