diff options
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index fb9b1f65..86254b14 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -102,7 +102,12 @@ rescue LoadError end begin - require 'hpricot' + begin + require 'hpricot' + rescue LoadError + require 'nokogiri/hpricot' + ::Hpricot = Nokogiri::Hpricot + end module ::Irc module Utils AFTER_PAR_PATH = /^(?:div|span)$/ |