From 59dce593cbb73af44d26b143837154e786a2012a Mon Sep 17 00:00:00 2001 From: Alexander Beisig Date: Sat, 5 Aug 2006 18:08:09 +0000 Subject: [PATCH] make sure @commands is never nil in script.rb --- data/rbot/plugins/script.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index 171dabcb..f744ed01 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -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 -- 2.39.2