NAME

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

SYNOPSIS

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

DESCRIPTION

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.

METHODS

All methods take the configured context name as an argument.

get_irc_context

Retrieve the Bot::Cobalt::IRC::Server object for the specified context.

get_irc_obj

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

get_irc_casemap

Retrieve the specified context's CASEMAPPING value; this is a convenience method that returns the same string as "casemap" in Bot::Cobalt::IRC::Server

is_connected

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

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>

http://www.cobaltirc.org