Apply flat style to custom badges.

Follow-up to issue #159.
This commit is contained in:
Thaddee Tyl
2014-04-20 22:27:18 +00:00
parent e65aa42926
commit 5ec58cae0c

View File

@@ -879,6 +879,9 @@ function(data, match, end, ask) {
} else {
badgeData.colorscheme = color;
}
if (data.style && validTemplates.indexOf(data.style) > -1) {
badgeData.template = data.style;
}
badge(badgeData, makeSend(format, ask.res, end));
} catch(e) {
badge({text: ['error', 'bad badge'], colorscheme: 'red'},