mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Added quickfix for quake2 hostname
Left other ones in there just incase of unforseen compatibility issues.
This commit is contained in:
parent
869ca4a4d8
commit
ae8c13ba69
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue