From ae8c13ba694444b39256456def78725955dec1e3 Mon Sep 17 00:00:00 2001 From: xCausxn Date: Sat, 18 Jul 2015 23:13:58 +0100 Subject: [PATCH] Added quickfix for quake2 hostname Left other ones in there just incase of unforseen compatibility issues. --- protocols/quake2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/protocols/quake2.js b/protocols/quake2.js index e4631e8..5f1f584 100644 --- a/protocols/quake2.js +++ b/protocols/quake2.js @@ -78,6 +78,7 @@ module.exports = require('./core').extend({ if('sv_maxclients' in state.raw) state.maxplayers = state.raw.sv_maxclients; if('maxclients' in state.raw) state.maxplayers = state.raw.maxclients; if('sv_hostname' in state.raw) state.name = state.raw.sv_hostname; + if('hostname' in state.raw) state.name = state.raw.hostname; self.finish(state); return true;