Method: Autumn::Authentication::Op#initialize
- Defined in:
- lib/autumn/authentication.rb
#initialize(options = {}) ⇒ Op
Creates a new authenticator. Pass a list of allowed privileges (as symbols) for the privileges option. By default this class accepts ops, admins, and channel owners/founders as authorized.
75 76 77 78 |
# File 'lib/autumn/authentication.rb', line 75 def initialize(={}) @privileges = [:privileges] @privileges ||= [ :operator, :oper, :op, :admin, :founder, :channel_owner ] end |