From adb719c8e886fead559802bfce868ddfce001a80 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Sun, 31 Jul 2005 01:21:02 +0000 Subject: Sun Jul 31 02:20:08 BST 2005 Tom Gilbert * 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. --- bin/rbot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3