summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorAlexander Beisig <alexander.beisig@gmx.de>2006-08-05 18:08:09 +0000
committerAlexander Beisig <alexander.beisig@gmx.de>2006-08-05 18:08:09 +0000
commit59dce593cbb73af44d26b143837154e786a2012a (patch)
treebdaf4c3a3be849e62335b48e00c4648d42d80c4b /data/rbot
parenteb66066cc02007be51b8f9d376085bc70ee92a0a (diff)
make sure @commands is never nil in script.rb
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/script.rb4
1 files changed, 3 insertions, 1 deletions
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