
Bot::Cobalt::Core::Role::IRC

## From a Cobalt plugin ## Get this context's Bot::Cobalt::IRC::Server object: my $context_obj = $core->get_irc_context( $context );

Bot::Cobalt core methods for managing a pool of Bot::Cobalt::IRC::Server objects.
This role is consumed by Bot::Cobalt::Core to provide the Servers hash (keyed on configured context name) and some convenience methods.

All methods take the configured context name as an argument.
Retrieve the Bot::Cobalt::IRC::Server object for the specified context.
Retrieve the object for the backend IRC component; this is a convenience method that returns the same object as "irc" in Bot::Cobalt::IRC::Server
Retrieve the specified context's CASEMAPPING value; this is a convenience method that returns the same string as "casemap" in Bot::Cobalt::IRC::Server
Boolean true if the specified context is marked as connected; this is a convenience method that returns the same string as "connected" in Bot::Cobalt::IRC::Server

Jon Portnoy <avenj@cobaltirc.org>