summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2014-03-25 07:19:40 +0100
committerRobert Gerus <arachnist@i.am-a.cat>2014-03-25 07:19:40 +0100
commit823ed511611752f1212e83a9f3b9756d620c29e3 (patch)
treecc15cf0e7202fe7487af935ad784a3bef4b5414c
parent14b64e632dc864aba373a126a27d05a1d69c4244 (diff)
downloadrepost-823ed511611752f1212e83a9f3b9756d620c29e3.tar.gz
repost-823ed511611752f1212e83a9f3b9756d620c29e3.tar.bz2
repost-823ed511611752f1212e83a9f3b9756d620c29e3.tar.xz
repost-823ed511611752f1212e83a9f3b9756d620c29e3.zip
Allow command removal
-rw-r--r--plugins/commands.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/commands.rb b/plugins/commands.rb
index ab0a180..b62ceda 100644
--- a/plugins/commands.rb
+++ b/plugins/commands.rb
@@ -19,6 +19,10 @@ class Repost
}
end
+ def unregister_command(keyword)
+ self.commands.delete_if { |item| item[:keyword] == keyword }
+ end
+
# just a stub for now
def access_level(user, target)
99