Allow command removal

master
Robert Gerus 2014-03-25 07:19:40 +01:00
parent 14b64e632d
commit 823ed51161
1 changed files with 4 additions and 0 deletions

View File

@ -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