From 61d239ccd5876a2bbad12228190bef8425388d69 Mon Sep 17 00:00:00 2001 From: xCausxn Date: Sun, 4 Jan 2015 17:35:11 +0000 Subject: [PATCH] Quick Fix For Name and MaxPlayers virtualserver_name and virtualserver_maxclients --- protocols/teamspeak3.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/teamspeak3.js b/protocols/teamspeak3.js index 77597a0..0980495 100644 --- a/protocols/teamspeak3.js +++ b/protocols/teamspeak3.js @@ -15,6 +15,8 @@ module.exports = require('./core').extend({ function(c) { self.sendCommand('serverinfo', function(data) { state.raw = data[0]; + if('virtualserver_name' in state.raw) state.name = state.raw.virtualserver_name; + if('virtualserver_maxclients' in state.raw) state.maxplayers = state.raw.virtualserver_maxclients; c(); }); },