summaryrefslogtreecommitdiff
path: root/bin/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rbot')
-rwxr-xr-xbin/rbot4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/rbot b/bin/rbot
index f65cb949..38cf7e49 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -45,6 +45,8 @@ def debug(message=nil)
#yield
end
+orig_opts = ARGV.dup
+
opts = GetoptLong.new(
["--debug", "-d", GetoptLong::NO_ARGUMENT],
["--help", "-h", GetoptLong::NO_ARGUMENT],
@@ -80,7 +82,7 @@ if ($opts["help"])
exit 0
end
-if(bot = Irc::IrcBot.new(ARGV.shift))
+if(bot = Irc::IrcBot.new(ARGV.shift, :argv => orig_opts))
# just run the bot
bot.mainloop
end