From: Giuseppe Bilotta Date: Thu, 12 Apr 2007 11:22:05 +0000 (+0000) Subject: script, rss plugins: raise if main data could not be restored from the registry X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=5f58c780eea198c68e8b9528c9c07cca0f401257;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git script, rss plugins: raise if main data could not be restored from the registry --- diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index ca20c5a6..fa777739 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -289,6 +289,7 @@ class RSSFeedsPlugin < Plugin } @feeds = @registry[:feeds] + raise unless @feeds @registry.recovery = nil diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index 38bb3134..5e2f1e58 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -21,6 +21,7 @@ class ScriptPlugin < Plugin super if @registry.has_key?(:commands) @commands = @registry[:commands] + raise unless @commands else @commands = Hash.new end