diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-31 01:21:02 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-31 01:21:02 +0000 |
commit | adb719c8e886fead559802bfce868ddfce001a80 (patch) | |
tree | b9b45ad201f3fa48cd7b5432195d0b62849f19cb /bin | |
parent | d30940cb5ff75cf7eab81f6a588b3b5297a762ad (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-x | bin/rbot | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |