Class | Autumn::Authentication::Nick |
In: |
lib/autumn/authentication.rb
|
Parent: | Base |
Authenticates by IRC nick. A list of allowed nicks is built on initialization, and anyone with that nick is allowed to use restricted commands.
This is the most obvious approach to authentication, but it is hardly secure. Anyone can change their nick to an admin‘s nick once that admin logs out.
Creates a new authenticator. Pass a single nick for the nick option or an array of allowed nicks for the nicks option. If neither option is set, an exception is raised.