From c1f642084d34e9940ef7200662f27671983cf54d Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 13 Apr 2013 21:08:23 +0000 Subject: [PATCH] flashy module uses new url constructor api --- modules/flashy/flashy.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/flashy/flashy.js b/modules/flashy/flashy.js index 7c553c4..4a8126b 100644 --- a/modules/flashy/flashy.js +++ b/modules/flashy/flashy.js @@ -28,11 +28,8 @@ var flashy = function(dbot) { var text = event.input[2].trim().toUpperCase(); if(_.has(this.colourMap, colour)) { - event.reply(dbot.t('url', { - 'host': dbot.config.web.webHost, - 'port': dbot.config.web.webPort, - 'path': 'flashy/' + colour + '/' + encodeURIComponent(text) - })); + event.reply(dbot.api.web.getUrl('flashy/' + colour + '/' + + encodeURIComponent(text))); } else { var possibleColours = _.keys(this.colourMap).join(', ') + '.'; event.reply('No such colour, brah. Available colours are: ' + possibleColours);