diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-03-10 12:11:17 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-03-10 12:11:17 +0000 |
commit | 787c3322e0c1acdccb457c47bea76f31c5747f52 (patch) | |
tree | 6dc7e8e1bb39907208c441994127e4d6e63da03c /rbot/ircbot.rb | |
parent | bebe7f8392f3f1750bc196cb19bd4bfbda3310b6 (diff) |
fix http usage, other tweaks
Diffstat (limited to 'rbot/ircbot.rb')
-rw-r--r-- | rbot/ircbot.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rbot/ircbot.rb b/rbot/ircbot.rb index 60ed5e98..45603963 100644 --- a/rbot/ircbot.rb +++ b/rbot/ircbot.rb @@ -69,6 +69,9 @@ class IrcBot # storage (hash interface tied to a bdb file, plugins use Accessors to store # and restore objects in their own namespaces.) attr_reader :registry + + # our webrick instance + attr_reader :http_server # create a new IrcBot with botclass +botclass+ def initialize(botclass) @@ -392,6 +395,7 @@ class IrcBot @socket.flush @socket.shutdown @registry.close + @http_server.shutdown puts "rbot quit (#{message})" exit 0 end |