summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/commands.rb2
1 files changed, 1 insertions, 1 deletions
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