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