3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

split on \n

This commit is contained in:
reality 2013-08-25 20:58:11 +00:00
parent 69f061c671
commit 96369ab604

View File

@ -42,7 +42,7 @@ var imgur = function(dbot) {
info += albumData.title + ' - '; info += albumData.title + ' - ';
} }
if(albumData.description) { if(albumData.description) {
info += albumData.description + ' is '; info += albumData.description.split('\n')[0] + ' is ';
} }
info += 'an album with ' + albumData.images_count + ' images '; info += 'an album with ' + albumData.images_count + ' images ';
info += 'and ' + albumData.views + ' views'; info += 'and ' + albumData.views + ' views';