From 3aaff245aa49575a3fcb492677b80bb47dc2b762 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 15 May 2008 01:12:56 +0200 Subject: fish plugin: fix text translation after babelfish moved to Yahoo, and disable non-working URL translation --- data/rbot/plugins/fish.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/fish.rb b/data/rbot/plugins/fish.rb index defc872d..412b0d06 100644 --- a/data/rbot/plugins/fish.rb +++ b/data/rbot/plugins/fish.rb @@ -36,7 +36,8 @@ class BabelPlugin < Plugin trans_pair = "#{trans_from}_#{trans_to}" if (trans_text =~ /^http:\/\//) && (URI.parse(trans_text) rescue nil) - return 'webpage translation is not currently supported' + m.reply 'webpage translation is not currently supported' + return # TODO FIXME url = BASEURL+'/translate_url' + "?lp=#{trans_pair}&trurl=#{data_text}" -- cgit v1.2.3