diff options
author | Alexander Beisig <alexander.beisig@gmx.de> | 2006-08-05 18:08:09 +0000 |
---|---|---|
committer | Alexander Beisig <alexander.beisig@gmx.de> | 2006-08-05 18:08:09 +0000 |
commit | 59dce593cbb73af44d26b143837154e786a2012a (patch) | |
tree | bdaf4c3a3be849e62335b48e00c4648d42d80c4b /data/rbot | |
parent | eb66066cc02007be51b8f9d376085bc70ee92a0a (diff) |
make sure @commands is never nil in script.rb
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/script.rb | 4 |
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 |