summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/script.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb
index 431b5246..bf8182ce 100644
--- a/data/rbot/plugins/script.rb
+++ b/data/rbot/plugins/script.rb
@@ -18,18 +18,9 @@ class ScriptPlugin < Plugin
super
if @registry.has_key?(:commands)
@commands = @registry[:commands]
- end
-
- if @commands.nil?
+ else
@commands = Hash.new
end
-
- # Migrate old Hash to new:
- @commands.each_pair do |name, cmd|
- unless cmd.instance_of?( Command )
- @commands[name] = Command.new( cmd, 'unknown hacker', 'somedate', '#somechan' )
- end
- end
end