3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-11 12:32:36 +01:00
This commit is contained in:
reality 2013-10-28 14:53:36 +00:00
parent 1d2a5f891e
commit c1ac7f035d

View File

@ -70,7 +70,8 @@ var steam = function(dbot) {
},
'json': true
}, function(err, res, body) {
if(_.has(body, 'response') && _.has(body.response, 'players') && body.response.player != null) {
if(_.has(body, 'response') && _.has(body.response, 'players') &&
body.response.players != null) {
callback(null, body.response.players[0]);
} else {
callback(true, null);