diff options
Diffstat (limited to 'module/admin.rb')
-rw-r--r-- | module/admin.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/admin.rb b/module/admin.rb index d59fd49..dd52cab 100644 --- a/module/admin.rb +++ b/module/admin.rb @@ -6,7 +6,7 @@ module Dinobot def initialize(bot) super - @commands << :join << :part << :load << :unload + @commands << :join << :part << :quit << :load << :unload @commands << :listadmins << :listmodules << :listchannels @admins = Array.new @@ -37,6 +37,12 @@ module Dinobot [[:part, argument.strip]] end + def quit(user, channel, argument) + return unless is_admin?(user) + + [[:quit, argument ? argument.strip : 'Quitting.']] + end + def listadmins(user, channel, argument) return unless is_admin?(user) |