]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
bin/rbot: only set when --loglevel is provided on the command line
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 25 Apr 2007 19:17:24 +0000 (19:17 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 25 Apr 2007 19:17:24 +0000 (19:17 +0000)
bin/rbot

index 0a8fb7e9637dfa76ee175dfa7abb3e2db925e699..744944e00ea96354faca3d05fba4c2050005f162 100755 (executable)
--- a/bin/rbot
+++ b/bin/rbot
@@ -81,7 +81,7 @@ opts.each {|opt, arg|
   $opts[opt.sub(/^-+/, "")] = arg
 }
 
-$cl_loglevel = $opts["loglevel"].to_i
+$cl_loglevel = $opts["loglevel"].to_i if $opts["loglevel"]
 
 if ($opts["trace"])
   set_trace_func proc { |event, file, line, id, binding, classname|