]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
script, rss plugins: raise if main data could not be restored from the registry
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 12 Apr 2007 11:22:05 +0000 (11:22 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 12 Apr 2007 11:22:05 +0000 (11:22 +0000)
data/rbot/plugins/rss.rb
data/rbot/plugins/script.rb

index ca20c5a6397e55779d72a4adb8a5144deb20843e..fa777739ea0bbd561abd5604d23babbda957a668 100644 (file)
@@ -289,6 +289,7 @@ class RSSFeedsPlugin < Plugin
       }\r
 \r
       @feeds = @registry[:feeds]\r
+      raise unless @feeds\r
 \r
       @registry.recovery = nil\r
 \r
index 38bb3134828002cf0e356f9532e70e7f734f1e35..5e2f1e58e1b9140eac4cfabae9a2e17384dfde70 100644 (file)
@@ -21,6 +21,7 @@ class ScriptPlugin < Plugin
     super
     if @registry.has_key?(:commands)
       @commands = @registry[:commands]
+      raise unless @commands
     else
       @commands = Hash.new
     end