aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/admin.rb8
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)