diff options
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/fish.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/fish.rb b/data/rbot/plugins/fish.rb index 52f30d69..25816024 100644 --- a/data/rbot/plugins/fish.rb +++ b/data/rbot/plugins/fish.rb @@ -72,8 +72,8 @@ class BabelPlugin < Plugin debug "babelfish response: #{l}" case l - when /^\s+<td bgcolor=white class=s><div style=padding:10px;>(.*)<\/div>/ - answer = $1 + when /^\s+<td bgcolor=white class=s><div style=padding:10px;>(.*)<\/div><\/td>\s*<\/tr>/m + answer = $1.gsub(/\s*[\r\n]+\s*/,' ') # cache the answer if(answer.length > 0) @registry["#{trans_pair}/#{data_text}"] = answer |