From 7eeb687385189f55de41aecc51050d972c1e3fbc Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 9 Jul 2013 21:16:41 +0000 Subject: [PATCH] doh --- modules/soundcloud/soundcloud.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/soundcloud/soundcloud.js b/modules/soundcloud/soundcloud.js index 9308ae5..65a3177 100644 --- a/modules/soundcloud/soundcloud.js +++ b/modules/soundcloud/soundcloud.js @@ -20,6 +20,7 @@ var soundcloud = function(dbot) { }, function(error, response, body) { if(body.length != 0) { body = body[0]; + if(!body.genre) body.genre = ''; event.reply(dbot.t('sc_track', { 'title': body.title, 'artist': body.user.username, @@ -49,6 +50,7 @@ var soundcloud = function(dbot) { }, function(error, response, body) { if(response.statusCode == 200) { if(body.kind == 'track') { + if(!body.genre) body.genre = ''; event.reply(dbot.t('sc_track', { 'title': body.title, 'artist': body.user.username,