From 787c3322e0c1acdccb457c47bea76f31c5747f52 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Thu, 10 Mar 2005 12:11:17 +0000 Subject: fix http usage, other tweaks --- rbot/ircbot.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rbot/ircbot.rb') 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 -- cgit v1.2.3