aboutsummaryrefslogtreecommitdiff
path: root/admin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'admin.rb')
-rw-r--r--admin.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin.rb b/admin.rb
index 61e454b..fceaa26 100644
--- a/admin.rb
+++ b/admin.rb
@@ -36,15 +36,15 @@ module Dinobot
end
def load(user, channel, argument)
- argument.split.map do |x|
- [:load_module, x.intern]
- end
+ return unless is_admin?(user)
+
+ argument.split.map { |x| [:load_module, x.intern] }
end
def unload(user, channel, argument)
- argument.split.map do |x|
- [:unload_module, x.intern]
- end
+ return unless is_admin?(user)
+
+ argument.split.map { |x| [:unload_module, x.intern] }
end
end
end