]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
make sure @commands is never nil in script.rb
authorAlexander Beisig <alexander.beisig@gmx.de>
Sat, 5 Aug 2006 18:08:09 +0000 (18:08 +0000)
committerAlexander Beisig <alexander.beisig@gmx.de>
Sat, 5 Aug 2006 18:08:09 +0000 (18:08 +0000)
data/rbot/plugins/script.rb

index 171dabcb5a813f73ce75fb22a0c4ce54afe61ef5..f744ed01a08af2fa9b4f91e04d5e3fe0465f9ad4 100644 (file)
@@ -18,7 +18,9 @@ class ScriptPlugin < Plugin
     super
     if @registry.has_key?(:commands)
       @commands = @registry[:commands]
-    else
+    end
+    
+    if @commands.nil?
       @commands = Hash.new
     end