diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-12 11:22:05 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-12 11:22:05 +0000 |
commit | 5f58c780eea198c68e8b9528c9c07cca0f401257 (patch) | |
tree | f80e670af4844b7f5d247e30247e8bec55e7a60e | |
parent | ac39a3b330cbf7c4b65ba907783364b63fb109b3 (diff) |
script, rss plugins: raise if main data could not be restored from the registry
-rw-r--r-- | data/rbot/plugins/rss.rb | 1 | ||||
-rw-r--r-- | data/rbot/plugins/script.rb | 1 |
2 files changed, 2 insertions, 0 deletions
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 |