Component/IRC/Common.pm

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