From 838f03a574530b3e7c9e35d618bc41f78a826a34 Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Tue, 25 Mar 2014 07:21:49 +0100 Subject: [PATCH] reject! will be better here --- plugins/commands.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands.rb b/plugins/commands.rb index b62ceda..9ae9c10 100644 --- a/plugins/commands.rb +++ b/plugins/commands.rb @@ -20,7 +20,7 @@ class Repost end def unregister_command(keyword) - self.commands.delete_if { |item| item[:keyword] == keyword } + self.commands.reject! { |item| item[:keyword] == keyword } end # just a stub for now