diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/dict.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/dict.rb b/data/rbot/plugins/dict.rb index edadd3c7..098d4ebb 100644 --- a/data/rbot/plugins/dict.rb +++ b/data/rbot/plugins/dict.rb @@ -140,9 +140,9 @@ class DictPlugin < Plugin url << "?view=uk" end h = @bot.httputil.get(url, :max_redir => 5) - if h and h.match(%r!<h2>#{word}(?:<sup>1</sup>)?</h2>!) + if h and h.match(/<h2>#{word}<\/h2>(.*)Perform/m) m.reply("#{word} : #{url}") unless justcheck - defn = $' + defn = $1 m.reply("#{Bold}%s#{Bold}: %s" % [word, defn.ircify_html(:nbsp => :space)], :overlong => :truncate) return true end |