Bot::Cobalt::Core::ContextMeta::Auth - Auth list management
my $auth_lev = $core->auth->level($context, $nickname); my $auth_usr = $core->auth->username($context, $nickname);
See below for a complete description of available methods.
A ContextMeta subclass providing context-specific authorization state information.
This is used by plugins to manage or retrieve authorized user details.
->add( Alias => $alias, Context => $context, Nickname => $nickname, Username => $username, Host => $host, Level => $lev, Flags => \%flags, );
Add a newly-authorized user.
Alias should generally be the result of a Core get_plugin_alias method call.
get_plugin_alias
->level($context, $nickname)
Return recognized level for specified nickname, or 0 for unknown nicknames.
->username($context, $nickname)
Return authorized username for a specified nickname, or empty list for unknown.
->host($context, $nickname)
Return recognized hostname for a specified nickname, or empty list for unknown.
->flags($context, $nickname)
Return flags HASH for a specified nickname, or empty hashref for unknown.
->has_flag($context, $nickname, $flag)
Return boolean value indicating whether a flag is named flag is enabled.
->set_flag($context, $nickname, $flag)
Turn a named flag on for the specified nickname.
->drop_flag($context, $nickname, $flag)
Remove a named flag from the specified nickname.
->move($context, $old, $new)
Move an authorized state, such as when a user changes nicknames.
Jon Portnoy <avenj@cobaltirc.org>
http://www.cobaltirc.org
To install Bot::Cobalt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Cobalt
CPAN shell
perl -MCPAN -e shell install Bot::Cobalt
For more information on module installation, please visit the detailed CPAN module installation guide.