summaryrefslogtreecommitdiff
path: root/bin/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rbot')
-rwxr-xr-xbin/rbot14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/rbot b/bin/rbot
index 82ee9c9a..8c65f42c 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -111,14 +111,14 @@ if ($opts["help"])
exit 0
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 : loglevel
- if loglevel
- Irc::Bot::LoggerManager.instance.set_level(loglevel)
- end
+# setup logger based on command line arguments
+loglevel = $opts['loglevel'] ? $opts['loglevel'].to_i : nil
+loglevel = $opts['debug'] ? 0 : loglevel
+if loglevel
+ Irc::Bot::LoggerManager.instance.set_level(loglevel)
+end
+if(bot = Irc::Bot.new(ARGV.shift, :argv => orig_opts))
# just run the bot
bot.mainloop
end