1package POE::Component::IRC::Common;
2our $AUTHORITY = 'cpan:HINRIK';
3$POE::Component::IRC::Common::VERSION = '6.93';
4use strict;
5use warnings FATAL => 'all';
6
7use IRC::Utils;
8
9require Exporter;
10use base qw(Exporter);
11our @EXPORT_OK = qw(
12    u_irc l_irc parse_mode_line parse_ban_mask matches_mask matches_mask_array
13    parse_user has_color has_formatting strip_color strip_formatting NORMAL
14    BOLD UNDERLINE REVERSE WHITE BLACK DARK_BLUE DARK_GREEN RED BROWN PURPLE
15    ORANGE YELLOW LIGHT_GREEN TEAL CYAN LIGHT_BLUE MAGENTA DARK_GREY
16    LIGHT_GREY irc_to_utf8
17);
18our %EXPORT_TAGS = ( ALL => [@EXPORT_OK] );
19
20no warnings 'once'; ## no critic (TestingAndDebugging::ProhibitNoWarnings)
21*NORMAL      = *IRC::Utils::NORMAL;
22*BOLD        = *IRC::Utils::BOLD;
23*UNDERLINE   = *IRC::Utils::UNDERLINE;
24*REVERSE     = *IRC::Utils::REVERSE;
25*ITALIC      = *IRC::Utils::ITALIC;
26*FIXED       = *IRC::Utils::FIXED;
27*WHITE       = *IRC::Utils::WHITE;
28*BLACK       = *IRC::Utils::BLACK;
29*DARK_BLUE   = *IRC::Utils::BLUE;
30*DARK_GREEN  = *IRC::Utils::GREEN;
31*RED         = *IRC::Utils::RED;
32*BROWN       = *IRC::Utils::BROWN;
33*PURPLE      = *IRC::Utils::PURPLE;
34*ORANGE      = *IRC::Utils::ORANGE;
35*YELLOW      = *IRC::Utils::YELLOW;
36*LIGHT_GREEN = *IRC::Utils::LIGHT_GREEN;
37*TEAL        = *IRC::Utils::TEAL;
38*CYAN        = *IRC::Utils::LIGHT_CYAN;
39*LIGHT_BLUE  = *IRC::Utils::LIGHT_BLUE;
40*MAGENTA     = *IRC::Utils::PINK;
41*DARK_GREY   = *IRC::Utils::GREY;
42*LIGHT_GREY  = *IRC::Utils::LIGHT_GREY;
43
44*u_irc              = *IRC::Utils::uc_irc;
45*l_irc              = *IRC::Utils::lc_irc;
46*parse_mode_line    = *IRC::Utils::parse_mode_line;
47*parse_ban_mask     = *IRC::Utils::normalize_mask;
48*parse_user         = *IRC::Utils::parse_user;
49*matches_mask       = *IRC::Utils::matches_mask;
50*matches_mask_array = *IRC::Utils::matches_mask_array;
51*has_color          = *IRC::Utils::has_color;
52*has_formatting     = *IRC::Utils::has_formatting;
53*strip_color        = *IRC::Utils::strip_color;
54*strip_formatting   = *IRC::Utils::strip_formatting;
55*irc_to_utf8        = *IRC::Utils::decode_irc;
56
571;
58
59=encoding utf8
60
61=head1 NAME
62
63POE::Component::IRC::Common - Provides a set of common functions for the
64L<POE::Component::IRC|POE::Component::IRC> suite
65
66=head1 SYNOPSIS
67
68 use IRC::Utils;
69
70=head1 DESCRIPTION
71
72B<'ATTENTION'>: Most of this module's functionality has been moved into
73L<IRC::Utils|IRC::Utils>. Take a look at it.
74
75This module still exports the old functions (as wrappers around equivalents
76from L<IRC::Utils|IRC::Utils>), but new ones won't be added.
77
78=head1 AUTHOR
79
80Chris 'BinGOs' Williams
81
82=head1 SEE ALSO
83
84L<IRC::Utils|IRC::Utils>
85
86L<POE::Component::IRC|POE::Component::IRC>
87
88=cut
89