summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-25 19:17:24 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-25 19:17:24 +0000
commit39d0ceab383515ab94def26cf3c1a6797c52cf3e (patch)
tree343389d166f1430e10d5e55b325edbcf85b5804d
parent78c6c6ed26f019aec6f3ac9f3e01539a68016537 (diff)
bin/rbot: only set when --loglevel is provided on the command line
-rwxr-xr-xbin/rbot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rbot b/bin/rbot
index 0a8fb7e9..744944e0 100755
--- 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|