]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/script.rb
script, rss plugins: raise if main data could not be restored from the registry
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / script.rb
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