summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-31 01:21:02 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-31 01:21:02 +0000
commitadb719c8e886fead559802bfce868ddfce001a80 (patch)
treeb9b45ad201f3fa48cd7b5432195d0b62849f19cb /bin
parentd30940cb5ff75cf7eab81f6a588b3b5297a762ad (diff)
Sun Jul 31 02:20:08 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* Updated docgen to generate rdoc again with the new repo structure * added new restart command to the core bot, quits irc and reexecs the bot, to pick up new code/libraries etc.
Diffstat (limited to 'bin')
-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