diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-28 00:17:35 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-28 00:18:25 +0100 |
commit | 2a2144addbcb717b983dd18f993f276cc8bd4ef8 (patch) | |
tree | 351bb62597d6e19cea6c47c74dfb4e40b6512103 /data/rbot | |
parent | 51a821278bbb0e4b998e99aeb0f590898088eda7 (diff) |
dict plugin: ircify html in demauro search result
Demauro's search results can contain some HTML, so clean it up before
output.
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/dict.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/dict.rb b/data/rbot/plugins/dict.rb index c8c35568..c9bfabaf 100644 --- a/data/rbot/plugins/dict.rb +++ b/data/rbot/plugins/dict.rb @@ -112,7 +112,8 @@ class DictPlugin < Plugin text += entries[0...hits].map { |ar| n += 1 urls << @dmwaplemma % ar[2] - "#{n}. #{Bold}#{ar[0]}#{Bold} - #{ar[1].gsub(/<\/?em>/,'')}: #{@dmurl}#{ar[2]}" + key = ar[1].ircify_html + "#{n}. #{Bold}#{ar[0]}#{Bold} - #{key}: #{@dmurl}#{ar[2]}" }.join(" | ") m.reply text |