summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rbot b/bin/rbot
index 86f907cf..82ee9c9a 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -114,7 +114,7 @@ end
if(bot = Irc::Bot.new(ARGV.shift, :argv => orig_opts))
# setup logger based on command line arguments
loglevel = $opts['loglevel'] ? $opts['loglevel'].to_i : nil
- loglevel = $opts['debug'] ? 0 : nil
+ loglevel = $opts['debug'] ? 0 : loglevel
if loglevel
Irc::Bot::LoggerManager.instance.set_level(loglevel)
end