diff options
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index d96e0368..9664f653 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -268,7 +268,16 @@ class IrcBot @pong_timer = nil @last_ping = nil @startup_time = Time.new - @config = BotConfig.new(self) + + begin + @config = BotConfig.configmanager + @config.bot_associate(self) + rescue => e + fatal e.inspect + fatal e.backtrace.join("\n") + log_session_end + exit 2 + end if @config['core.run_as_daemon'] $daemonize = true |