diff options
author | Matthias Hecker <mail@apoc.cc> | 2020-04-14 19:42:37 +0200 |
---|---|---|
committer | Matthias Hecker <mail@apoc.cc> | 2020-04-14 19:42:37 +0200 |
commit | fda847bf583b9cc02eda341730d53887302ffe57 (patch) | |
tree | f5ed918626e2b7eb439da30f0c51aa447a18a41b /lib/rbot/ircbot.rb | |
parent | 391c2ce19c0954d3ea0f7b6cc17c001d26491ca6 (diff) |
refactor: httputil no longer core module see #38
This is intended to make testing/mocking of the http client easier.
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index ddbc6eb6..3c508229 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -50,6 +50,7 @@ require 'rbot/registry' require 'rbot/plugins' require 'rbot/message' require 'rbot/language' +require 'rbot/httputil' module Irc @@ -471,6 +472,7 @@ class Bot @plugins = nil @lang = Language.new(self, @config['core.language']) + @httputil = Utils::HttpUtil.new(self) begin @auth = Auth::manager @@ -1236,6 +1238,7 @@ class Bot debug "\tignoring cleanup error: #{$!}" end end + @httputil.cleanup # debug "\tstopping timers ..." # @timer.stop # debug "Closing registries" |