summaryrefslogtreecommitdiffstats
path: root/plugins/commands.rb
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2014-03-25 07:21:49 +0100
committerRobert Gerus <arachnist@i.am-a.cat>2014-03-25 07:21:49 +0100
commit838f03a574530b3e7c9e35d618bc41f78a826a34 (patch)
treefadf7443964fbdd8232134766bfd672129cce7f1 /plugins/commands.rb
parent823ed511611752f1212e83a9f3b9756d620c29e3 (diff)
downloadrepost-838f03a574530b3e7c9e35d618bc41f78a826a34.tar.gz
repost-838f03a574530b3e7c9e35d618bc41f78a826a34.tar.bz2
repost-838f03a574530b3e7c9e35d618bc41f78a826a34.tar.xz
repost-838f03a574530b3e7c9e35d618bc41f78a826a34.zip
reject! will be better here
Diffstat (limited to 'plugins/commands.rb')
-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