diff options
Diffstat (limited to 'bin/rbot')
-rwxr-xr-x | bin/rbot | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -89,8 +89,13 @@ if File.directory? "#{defaultlib}/rbot" $:.unshift defaultlib end end - + begin + # ruby 1.9 specific fixes + unless RUBY_VERSION < '1.9' + require 'rbot/compat19' + end + require 'rbot/ircbot' rescue LoadError => e puts "Error: couldn't find the rbot/ircbot module (or one of its dependencies)\n" @@ -98,11 +103,6 @@ rescue LoadError => e exit 2 end -# ruby 1.9 specific fixes -unless RUBY_VERSION < '1.9' - require 'rbot/compat19' -end - if ($opts["version"]) puts "rbot #{$version}" exit 0 |