summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-15 01:12:56 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-15 01:12:56 +0200
commit3aaff245aa49575a3fcb492677b80bb47dc2b762 (patch)
tree268f6e4328a60ef10ae91b3fddff1a24a17c362d /data
parent06597d76052a1680935da4a3ef6b485525383a76 (diff)
fish plugin: fix text translation after babelfish moved to Yahoo, and disable non-working URL translation
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/fish.rb3
1 files changed, 2 insertions, 1 deletions
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}"