X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fscript.rb;h=5e2f1e58e1b9140eac4cfabae9a2e17384dfde70;hb=9a565bfd48c59ac9c1b37d5afe9b8640889632ff;hp=38bb3134828002cf0e356f9532e70e7f734f1e35;hpb=ac39a3b330cbf7c4b65ba907783364b63fb109b3;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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