]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - bin/rbot
Fix RSS plugin problems caused by watches created before the new Irc framework
[user/henk/code/ruby/rbot.git] / bin / rbot
index 2f3ec9a1fc13959f091744bc59cf2f3a1a7be5b9..ce5c86bd9fb82446c17897aa8ec0bdafbf376129 100755 (executable)
--- a/bin/rbot
+++ b/bin/rbot
@@ -29,7 +29,7 @@ require 'etc'
 require 'getoptlong'
 require 'fileutils'
 
-$version="0.9.10-svn"
+$version="0.9.11-svn"
 $opts = Hash.new
 
 orig_opts = ARGV.dup
@@ -52,7 +52,7 @@ opts.each {|opt, arg|
   $opts[opt.sub(/^-+/, "")] = arg
 }
 
-$cl_loglevel = $opts["loglevel"]
+$cl_loglevel = $opts["loglevel"].to_i
 
 if ($opts["trace"])
   set_trace_func proc { |event, file, line, id, binding, classname|
@@ -66,7 +66,7 @@ defaultlib = File.expand_path(File.dirname($0) + '/../lib')
 
 if File.directory? "#{defaultlib}/rbot"
   unless $:.include? defaultlib
-    $:.push defaultlib
+    $:.unshift defaultlib
   end
 end