return the correct lastly played game

This commit is contained in:
reality 2014-01-05 03:17:42 +00:00
parent 2204c910b9
commit b86efbc3c2

View File

@ -166,7 +166,7 @@ var steam = function(dbot) {
if(games.total_count != 0) { if(games.total_count != 0) {
event.reply(dbot.t('steam_last_played', { event.reply(dbot.t('steam_last_played', {
'user': user.currentNick, 'user': user.currentNick,
'game': games.games[0].name 'game': _.last(games.games).name
})); }));
} else { } else {
event.reply(dbot.t('steam_not_played', { event.reply(dbot.t('steam_not_played', {