diff options
Diffstat (limited to 'module/admin.rb')
-rw-r--r-- | module/admin.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/admin.rb b/module/admin.rb index f26a652..957be7d 100644 --- a/module/admin.rb +++ b/module/admin.rb @@ -12,21 +12,21 @@ module Dinobot @commands << :join << :part << :quit << :load << :unload @commands << :listadmins << :listmodules << :listchannels - @admins = @store.data[:admins] + @admins = @store[:admins] @admins ||= Array.new end def add(user) @admins << user unless @admins.include?(user) - @store.data[:admins] = @admins + @store[:admins] = @admins @store.save end def remove(user) @admins.delete(user) - @store.data[:admins] = @admins + @store[:admins] = @admins @store.save end |