X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bin%2Frbot;h=ce5c86bd9fb82446c17897aa8ec0bdafbf376129;hb=c7eab99603c757ac4202e809f5c5923fa23e65ff;hp=2f3ec9a1fc13959f091744bc59cf2f3a1a7be5b9;hpb=67017561299dc4fbd4f9ebfafc112d9157904469;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/bin/rbot b/bin/rbot index 2f3ec9a1..ce5c86bd 100755 --- 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