NAME

Bot::Cobalt::Common - Import commonly-used tools and constants

SYNOPSIS

package Bot::Cobalt::Plugin::User::MyPlugin;
our $VERSION = '0.10';

## Import useful stuff from:
##  IRC::Utils
##  Bot::Cobalt::Utils
##  Object::Pluggable::Constants
## also get strict + warnings
use Bot::Cobalt::Common;

DESCRIPTION

This is a small exporter module providing easy inclusion of commonly used tools and constants to make life easier on plugin authors.

By default, strict and warnings are also enabled.

Exported

Constants

Moo types

All of the MooX::Types::MooseLike::Base types are exported.

See MooX::Types::MooseLike::Base for details.

IRC::Utils

See IRC::Utils for details.

decode_irc
lc_irc uc_irc eq_irc
strip_color strip_formatting

Hostmasks

parse_user
normalize_mask 
matches_mask

Nicknames and channels

is_valid_nick_name
is_valid_chan_name

Bot::Cobalt::Utils

See Bot::Cobalt::Utils for details.

String-related

rplprintf
color

Globs and matching

glob_to_re
glob_to_re_str 
glob_grep

Passwords

mkpasswd
passwdcmp

Time parsing

timestr_to_secs
secs_to_timestr
secs_to_str

Carp

Warnings

carp

Errors

croak

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>

http://www.cobaltirc.org