line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POE::Component::IRC::Constants; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:HINRIK'; |
3
|
|
|
|
|
|
|
$POE::Component::IRC::Constants::VERSION = '6.93'; |
4
|
79
|
|
|
79
|
|
641
|
use strict; |
|
79
|
|
|
|
|
192
|
|
|
79
|
|
|
|
|
2884
|
|
5
|
79
|
|
|
79
|
|
470
|
use warnings FATAL => 'all'; |
|
79
|
|
|
|
|
188
|
|
|
79
|
|
|
|
|
3559
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
79
|
|
|
79
|
|
464
|
use base qw(Exporter); |
|
79
|
|
|
|
|
176
|
|
|
79
|
|
|
|
|
13199
|
|
9
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
10
|
|
|
|
|
|
|
PCI_REFCOUNT_TAG PRI_LOGIN PRI_HIGH PRI_NORMAL MSG_PRI MSG_TEXT |
11
|
|
|
|
|
|
|
CMD_PRI CMD_SUB |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( ALL => [@EXPORT_OK] ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use constant { |
16
|
|
|
|
|
|
|
# The name of the reference count P::C::I keeps in client sessions. |
17
|
79
|
|
|
|
|
13335
|
PCI_REFCOUNT_TAG => 'P::C::I registered', |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Message priorities. |
20
|
|
|
|
|
|
|
PRI_LOGIN => 10, # PASS/NICK/USER messages must go first. |
21
|
|
|
|
|
|
|
PRI_HIGH => 20, # KICK/MODE etc. is more important than chatter. |
22
|
|
|
|
|
|
|
PRI_NORMAL => 30, # Random chatter. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
MSG_PRI => 0, # Queued message priority. |
25
|
|
|
|
|
|
|
MSG_TEXT => 1, # Queued message text. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# RCC: Since most of the commands are data driven, I have moved their |
28
|
|
|
|
|
|
|
# event/handler maps here and added priorities for each data driven |
29
|
|
|
|
|
|
|
# command. The priorities determine message importance when messages |
30
|
|
|
|
|
|
|
# are queued up. Lower ones get sent first. |
31
|
|
|
|
|
|
|
CMD_PRI => 0, # Command priority. |
32
|
|
|
|
|
|
|
CMD_SUB => 1, # Command handler. |
33
|
79
|
|
|
79
|
|
614
|
}; |
|
79
|
|
|
|
|
191
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=encoding utf8 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
POE::Component::IRC::Constants - Defines constants required by |
42
|
|
|
|
|
|
|
L |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
use POE::Component::IRC::Constants qw(:ALL); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 DESCRIPTION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
POE::Component::IRC::Constants defines constants required by |
51
|
|
|
|
|
|
|
L and derived sub-classes. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 AUTHOR |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Chris Williams |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SEE ALSO |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
L |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=cut |