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

replace "is" with pair of brackets (imgur)

What imgur calls "title" is possibly better described as a caption. Most titles in imgur's gallery are full sentences, making the current behaviour of "xxx is yyy" fall flat, as the resulting string does not have satisfactory grammar.

This commit changes the functionality from "[foo is bar]" to "[foo][bar]".

Untested.
This commit is contained in:
Douglas Gardner 2013-04-15 01:59:00 +00:00
parent 04edd2cd7f
commit 0f9da5c40e

View File

@ -14,7 +14,7 @@ var imgur = function(dbot) {
imgData = imgData.data;
info = '[';
if(imgData.title) {
info += imgData.title + ' is ';
info += imgData.title + '][';
}
if(imgData.type) {
if(imgData.animated) {