def initialize
super
- @dmurl = "http://www.demauroparavia.it/"
- @dmurlrx = %r{http://(?:www\.)?demauroparavia\.it/(\d+)}
+ @dmurl = "http://old.demauroparavia.it/"
+ @dmurlrx = %r{http://(?:www|old\.)?demauroparavia\.it/(\d+)}
@dmwapurl = "http://wap.demauroparavia.it/index.php?lemma=%s"
@dmwaplemma = "http://wap.demauroparavia.it/lemma.php?ID=%s"
@oxurl = "http://www.askoxford.com/concise_oed/%s"
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