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