blib/lib/POE/Filter/IRCv3.pm

filter: Statementstmt 98.0% 148 / 151 Branchbran 84.1% 69 / 82 Conditioncond 72.7% 16 / 22 MC/DCmcdc 58.3% 7 / 12 Subroutinesub 100% 17 / 17 Podpod 100% 10 / 10 totaltotal 90.8% 267 / 294 CC 53 SCAR 25.6
CC
53
Cov
91%
put
20.7
parse_one_line
20.0
new
4.3
CRAP 12.9
↑ Summary
1 package POE::Filter::IRCv3;
2 2 $POE::Filter::IRCv3::VERSION = '1.002001';
3 2 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 BEGIN {
8 2 ▶ if (eval { require POE::Filter; 1 }) {
Subroutine BEGIN: called CC=2 SCAR=7.0
Branch: 1 branch
BranchTrueFalseTotal
if (eval { do { require POE::Filter; 1 } }) 2 0 2
9 2 our @ISA = 'POE::Filter';
10 }
11 }
12  
13 =pod
14  
15 =for Pod::Coverage COLONIFY DEBUG BUFFER SPCHR
16  
17 =cut
18  
19 sub COLONIFY () { 0 }
20 sub DEBUG () { 1 }
21 sub BUFFER () { 2 }
22 sub SPCHR () { "\x20" }
23  
24 2 our %CharToEscapedTag = (
25 ';' => '\:',
26 ' ' => '\s',
27 "\\" => '\\',
28 "\r" => '\r',
29 "\n" => '\n',
30 "\a" => '\a',
31 );
32  
33 2 our %EscapedTagToChar = reverse %CharToEscapedTag;
34  
35 sub new {
36 4 ▶ my ($class, %params) = @_;
Subroutine new: called CC=4 SCAR=14.6
Pod documented
37 4 map {; $params{uc $_} = $params{$_} } keys %params;
38 bless [
39 ($params{'COLONIFY'} || 0),
40 4 ▶ ($params{'DEBUG'} || $ENV{POE_FILTER_IRC_DEBUG} || 0),
Condition57%4/7
$params{'COLONIFY'} || 0
l!l
22
$params{'DEBUG'} || $ENV{'POE_FILTER_IRC_DEBUG'} || 0
l!l
04
$params{"DEBUG"} or $ENV{"POE_FILTER_IRC_DEBUG"}
l!l&&r!l&&!r
004
MC/DC100%1/1
$params{'COLONIFY'} || 0
$params{'COLONIFY'}
MC/DC0%0/2
$params{'DEBUG'} || $ENV{'POE_FILTER_IRC_DEBUG'} || 0
$params{"DEBUG"} $ENV{"POE_FILTER_IRC_DEBUG"}
Truth table100%2/2
A
A= $params{'COLONIFY'}
Aresult
11
00
Truth table33%1/3
A or B
A= $params{"DEBUG"}B= $ENV{"POE_FILTER_IRC_DEBUG"}
ABresult
1X1
011
000
41 [] ## BUFFER
42 ], $class
43 }
44  
45 sub clone {
46 1 ▶ my ($self) = @_;
Subroutine clone: called CC=1 SCAR=0.0
Pod documented
47 1 my $nself = [@$self];
48 1 $nself->[BUFFER] = [];
49 1 bless $nself, ref $self
50 }
51  
52 sub debug {
53 4 ▶ my ($self, $value) = @_;
Subroutine debug: called CC=2 SCAR=6.9
Pod documented
54 4 ▶ return $self->[DEBUG] = $value if defined $value;
Branch: 1 branch
BranchTrueFalseTotal
if defined $value 2 2 4
55 2 $self->[DEBUG]
56 }
57  
58 sub colonify {
59 2 ▶ my ($self, $value) = @_;
Subroutine colonify: called CC=2 SCAR=6.9
Pod documented
60 2 ▶ return $self->[COLONIFY] = $value if defined $value;
Branch: 1 branch
BranchTrueFalseTotal
if defined $value 1 1 2
61 1 $self->[COLONIFY]
62 }
63  
64  
65 sub get_one_start {
66 2 ▶ my ($self, $raw_lines) = @_;
Subroutine get_one_start: called CC=2 SCAR=6.9
Pod documented
67 2 push @{ $self->[BUFFER] }, $_ for @$raw_lines;
68 }
69  
70 sub get_pending {
71 1 ▶ my ($self) = @_;
Subroutine get_pending: called CC=2 SCAR=7.0
Pod documented
72 1 ▶ @{ $self->[BUFFER] } ? [ @{ $self->[BUFFER] } ] : ()
Branch: 1 branch
BranchTrueFalseTotal
@{$self->[2];} ? : 1 0 1
73 }
74  
75 sub get {
76 39 ▶ my @events;
Subroutine get: called CC=4 SCAR=13.9
Pod documented
77 39 for my $raw_line (@{ $_[1] }) {
78 39 ▶ warn " >> '$raw_line'\n" if $_[0]->[DEBUG];
Branch: 1 branch
BranchTrueFalseTotal
if $_[0][1] 0 39 39
79 39 ▶ if ( my $event = parse_one_line($raw_line) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $event = parse_one_line($raw_line)) { } 36 3 39
80 36 push @events, $event;
81 } else {
82 3 carp "Received malformed IRC input: $raw_line";
83 }
84 }
85 \@events
86 39 }
87  
88 sub get_one {
89 2 ▶ my ($self) = @_;
Subroutine get_one: called CC=4 SCAR=14.6
Pod documented
90 2 my @events;
91 2 ▶ if ( my $raw_line = shift @{ $self->[BUFFER] } ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $raw_line = shift @{$$self[2];}) 2 0 2
92 2 ▶ warn " >> '$raw_line'\n" if $self->[DEBUG];
Branch: 1 branch
BranchTrueFalseTotal
if $self->[1] 0 2 2
93 2 ▶ if ( my $event = parse_one_line($raw_line) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $event = parse_one_line($raw_line)) { } 2 0 2
94 2 push @events, $event;
95 } else {
96 0 warn "Received malformed IRC input: $raw_line\n";
97 }
98 }
99 \@events
100 2 }
101  
102  
103 2 ▶use bytes;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 2 ▶no warnings 'substr';
Subroutine BEGIN: called CC=1 SCAR=0.0
105  
106 sub put {
107 21 ▶ my ($self, $events) = @_;
Subroutine put: called CC=20 SCAR=30.3
Pod documented
108 21 my $raw_lines = [];
109  
110 21 for my $event (@$events) {
111  
112 21 ▶ if ( ref $event eq 'HASH' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $event eq 'HASH') { } 21 0 21
113 21 my $raw_line;
114  
115 ## FIXME this gets glacially slow ->
116 21 ▶ if ( exists $event->{tags} && (my @tags = %{ $event->{tags} }) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $event->{"tags"} and my(@tags) = %{$event->{"tags"};}) 4 17 21
Condition66%2/3
exists $event->{"tags"} and my(@tags) = %{$event->{"tags"};}
!ll&&!rl&&r
1704
MC/DC50%1/2
exists $event->{"tags"} and my(@tags) = %{$event->{"tags"};}
exists $event->{"tags"} my(@tags) = %{$event->{"tags"};}
Truth table66%2/3
A and B
A= exists $event->{"tags"}B= my(@tags) = %{$event->{"tags"};}
ABresult
0X0
100
111
117 4 $raw_line .= '@';
118 4 ▶ while (my ($thistag, $thisval) = splice @tags, 0, 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = splice(@tags, 0, 2)) 8 4 12
119 8 $raw_line .= $thistag;
120 8 ▶ if (defined $thisval) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $thisval) 6 2 8
121 6 $raw_line .= '=';
122 6 my $tag_pos = 0;
123 6 my $len = length $thisval;
124 6 ▶ while ($tag_pos < $len) {
Branch: 1 branch
BranchTrueFalseTotal
if ($tag_pos < $len) 39 6 45
125 39 my $ch = substr $thisval, $tag_pos++, 1;
126 $raw_line .= exists $CharToEscapedTag{$ch} ?
127 39 ▶ $CharToEscapedTag{$ch} : $ch
Branch: 1 branch
BranchTrueFalseTotal
exists $POE::Filter::IRCv3::CharToEscapedTag{$ch} ? : 6 33 39
128 }
129 }
130 8 ▶ $raw_line .= ';' if @tags;
Branch: 1 branch
BranchTrueFalseTotal
if @tags 4 4 8
131 }
132 4 $raw_line .= ' ';
133 }
134  
135 21 ▶ $raw_line .= ':' . $event->{prefix} . ' ' if $event->{prefix};
Branch: 1 branch
BranchTrueFalseTotal
if $event->{"prefix"} 12 9 21
136 21 $raw_line .= $event->{command};
137  
138 21 ▶ if ( $event->{params} && (my @params = @{ $event->{params} }) ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($event->{"params"} and my(@params) = @{$event->{"params"};}) 17 4 21
Condition66%2/3
$event->{"params"} and my(@params) = @{$event->{"params"};}
!ll&&!rl&&r
4017
MC/DC50%1/2
$event->{"params"} and my(@params) = @{$event->{"params"};}
$event->{"params"} my(@params) = @{$event->{"params"};}
Truth table66%2/3
A and B
A= $event->{"params"}B= my(@params) = @{$event->{"params"};}
ABresult
0X0
100
111
139 17 $raw_line .= ' ';
140 17 my $param = shift @params;
141 17 ▶ while (@params) {
Branch: 1 branch
BranchTrueFalseTotal
if (@params) 14 17 31
142 14 $raw_line .= $param . ' ';
143 14 $param = shift @params;
144 }
145 $raw_line .= ':'
146 if (index($param, SPCHR) != -1)
147 or (index($param, ':') == 0)
148 or (
149 defined $event->{colonify} ?
150 17 ▶ $event->{colonify} : $self->[COLONIFY]
Branch: 2 branches
BranchTrueFalseTotal
if (index($param, " ") != -1) or index($param, ":") == 0 or defined $event->{"colonify"} ? $event->{"colonify"} : $self->[0] 5 3 8
defined $event->{'colonify'} ? : 3 5 8
Condition83%5/6
(index($param, " ") != -1) or index($param, ":") == 0 or defined $event->{"colonify"} ? $event->{"colonify"} : $self->[0]
l!l&&r!l&&!r
953
(index($param, " ") != -1) or index($param, ":") == 0
l!l&&r!l&&!r
908
MC/DC66%2/3
(index($param, " ") != -1) or index($param, ":") == 0 or defined $event->{"colonify"} ? $event->{"colonify"} : $self->[0]
(index($param, " ") != -1) index($param, ":") == 0 defined $event->{"colonify"} ? $event->{"colonify"} : $self->[0]
Truth table75%3/4
A or B or C
A= (index($param, " ") != -1)B= index($param, ":") == 0C= defined $event->{"colonify"} ? $event->{"colonify"} : $self->[0]
ABCresult
1XX1
01X1
0011
0000
151 );
152 17 $raw_line .= $param;
153 }
154  
155 21 push @$raw_lines, $raw_line;
156 21 ▶ warn " << '$raw_line'\n" if $self->[DEBUG];
Branch: 1 branch
BranchTrueFalseTotal
if $self->[1] 0 21 21
157 } else {
158 0 carp "($self) non-HASH passed to put(): '$event'";
159 0 ▶ push @$raw_lines, $event if ref $event eq 'SCALAR';
Branch: 1 branch
BranchTrueFalseTotal
if ref $event eq "SCALAR" 0 0 0
160 }
161  
162 }
163  
164 $raw_lines
165 21 }
166  
167  
168 sub parse_one_line {
169 42 ▶ my $raw_line = $_[0];
Subroutine parse_one_line: called CC=20 SCAR=30.0
Pod documented
170 42 my %event = ( raw_line => $raw_line );
171 42 my $pos = 0;
172  
173 ## We cheat a little; the spec is fuzzy when it comes to CR, LF, and NUL
174 ## bytes. Theoretically they're not allowed inside messages, but
175 ## that's really an implementation detail (and the spec agrees).
176 ## We just stick to SPCHR (\x20) here.
177  
178 42 ▶ if ( substr($raw_line, 0, 1) eq '@' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (substr($raw_line, 0, 1) eq "\@") 21 21 42
179 21 ▶ return unless (my $nextsp = index($raw_line, SPCHR)) > 0;
Branch: 1 branch
BranchTrueFalseTotal
unless (my $nextsp = index($raw_line, " ")) > 0 0 21 21
180 # Tag parser cheats and uses split, at the moment:
181 21 for ( split /;/, substr $raw_line, 1, ($nextsp - 1) ) {
182 41 my ($thistag, $thisval) = split /=/;
183 41 my $realval;
184 41 ▶ if (defined $thisval) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $thisval) 28 13 41
185 28 my $tag_pos = 0;
186 28 my $len = length $thisval;
187 28 ▶ while ($tag_pos < $len) {
Branch: 1 branch
BranchTrueFalseTotal
if ($tag_pos < $len) 130 28 158
188 130 my $ch = substr $thisval, $tag_pos++, 1;
189 130 ▶ if ($ch eq "\\") {
Branch: 1 branch
BranchTrueFalseTotal
if ($ch eq '\\') { } 12 118 130
190 12 my $pair = $ch . (substr $thisval, $tag_pos++, 1 || '');
191 12 ▶ if (exists $EscapedTagToChar{$pair}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $POE::Filter::IRCv3::EscapedTagToChar{$pair}) { } 10 2 12
192 10 $realval .= $EscapedTagToChar{$pair}
193 } else {
194 2 $realval .= substr $pair, 1, 1;
195 }
196 } else {
197 118 $realval .= $ch
198 }
199 }
200 }
201 41 $event{tags}->{$thistag} = $realval
202 }
203 21 $pos = $nextsp + 1;
204 }
205  
206 42 ▶ $pos++ while substr($raw_line, $pos, 1) eq SPCHR;
Branch: 1 branch
BranchTrueFalseTotal
substr($raw_line, $pos, 1) eq " " and do { ++$pos } 4 42 46
207  
208 42 ▶ if ( substr($raw_line, $pos, 1) eq ':' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (substr($raw_line, $pos, 1) eq ":") 26 16 42
209 26 my $nextsp;
210 ($nextsp = index $raw_line, SPCHR, $pos) > 0 and length(
211 26 ▶ $event{prefix} = substr $raw_line, ($pos + 1), ($nextsp - $pos - 1)
Branch: 1 branch
BranchTrueFalseTotal
($nextsp = index($raw_line, " ", $pos)) > 0 and length($event{"prefix"} = substr($raw_line, $pos + 1, $nextsp - $pos - 1)) or return 3 23 26
Condition100%3/3
($nextsp = index($raw_line, " ", $pos)) > 0 and length($event{"prefix"} = substr($raw_line, $pos + 1, $nextsp - $pos - 1))
!ll&&!rl&&r
2123
MC/DC100%2/2
($nextsp = index($raw_line, " ", $pos)) > 0 and length($event{"prefix"} = substr($raw_line, $pos + 1, $nextsp - $pos - 1))
($nextsp = index($raw_line, " ", $pos)) > 0 length($event{"prefix"} = substr($raw_line, $pos + 1, $nextsp - $pos - 1))
Truth table100%3/3
A and B
A= ($nextsp = index($raw_line, " ", $pos)) > 0B= length($event{"prefix"} = substr($raw_line, $pos + 1, $nextsp - $pos - 1))
ABresult
0X0
100
111
212 ) or return;
213 23 $pos = $nextsp + 1;
214 23 ▶ $pos++ while substr($raw_line, $pos, 1) eq SPCHR;
Branch: 1 branch
BranchTrueFalseTotal
substr($raw_line, $pos, 1) eq " " and do { ++$pos } 2 23 25
215 }
216  
217 39 my $nextsp_maybe;
218 39 ▶ if ( ($nextsp_maybe = index $raw_line, SPCHR, $pos) == -1 ) {
Branch: 1 branch
BranchTrueFalseTotal
if (($nextsp_maybe = index($raw_line, " ", $pos)) == -1) 8 31 39
219 # No more spaces; do we have anything..?
220 8 my $cmd = substr $raw_line, $pos;
221 8 ▶ $event{command} = uc( length $cmd ? $cmd : return );
Branch: 1 branch
BranchTrueFalseTotal
length $cmd ? : 8 0 8
222 8 return \%event
223 }
224  
225 $event{command} = uc(
226 31 substr($raw_line, $pos, ($nextsp_maybe - $pos) )
227 );
228 31 $pos = $nextsp_maybe + 1;
229  
230 31 ▶ $pos++ while substr($raw_line, $pos, 1) eq SPCHR;
Branch: 1 branch
BranchTrueFalseTotal
substr($raw_line, $pos, 1) eq " " and do { ++$pos } 5 31 36
231  
232 31 my $maxlen = length $raw_line;
233 31 ▶ PARAM: while ( $pos < $maxlen ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($pos < $maxlen) 54 1 55
234 54 ▶ if ( substr($raw_line, $pos, 1) eq ':' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (substr($raw_line, $pos, 1) eq ":") 21 33 54
235 21 push @{ $event{params} }, substr $raw_line, ($pos + 1);
236 last PARAM
237 21 }
238 33 ▶ if ( (my $nextsp = index $raw_line, SPCHR, $pos) == -1 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ((my $nextsp = index($raw_line, ' ', $pos)) == -1) { } 9 24 33
239 9 push @{ $event{params} }, substr $raw_line, $pos;
240 last PARAM
241 9 } else {
242 24 push @{ $event{params} }, substr $raw_line, $pos, ($nextsp - $pos);
243 24 $pos = $nextsp + 1;
244 24 ▶ $pos++ while substr($raw_line, $pos, 1) eq SPCHR;
Branch: 1 branch
BranchTrueFalseTotal
substr($raw_line, $pos, 1) eq " " and do { ++$pos } 6 24 30
245 next PARAM
246 24 }
247 }
248  
249 31 \%event
250 }
251  
252  
253 2 ▶no bytes;
Subroutine BEGIN: called CC=1 SCAR=0.0
254  
255  
256 2 ▶print
Branch: 1 branch
BranchTrueFalseTotal
unless caller 0 2 2
257 qq[<mst> let's try this again -without- the part where we beat you to],
258 qq[ death with a six foot plush toy of sexual harassment panda\n ]
259 2 unless caller; 1;
260  
261  
262 =pod
263  
264 =head1 NAME
265  
266 POE::Filter::IRCv3 - Fast IRCv3.2 parser for POE or stand-alone use
267  
268 =head1 SYNOPSIS
269  
270 my $filter = POE::Filter::IRCv3->new(colonify => 1);
271  
272 # Raw lines parsed to hashes:
273 my $array_of_refs = $filter->get(
274 [
275 ':prefix COMMAND foo :bar',
276 '@foo=bar;baz :prefix COMMAND foo :bar',
277 ]
278 );
279  
280 # Hashes deparsed to raw lines:
281 my $array_of_lines = $filter->put(
282 [
283 {
284 prefix => 'prefix',
285 command => 'COMMAND',
286 params => [
287 'foo',
288 'bar'
289 ],
290 },
291 {
292 prefix => 'prefix',
293 command => 'COMMAND',
294 params => [
295 'foo',
296 'bar'
297 ],
298 tags => {
299 foo => 'bar',
300 baz => undef,
301 },
302 },
303 ]
304 );
305  
306  
307 # Stacked with a line filter, suitable for Wheel usage, etc:
308 my $ircd = POE::Filter::IRCv3->new(colonify => 1);
309 my $line = POE::Filter::Line->new(
310 InputRegexp => '\015?\012',
311 OutputLiteral => "\015\012",
312 );
313 my $stacked = POE::Filter::Stackable->new(
314 Filters => [ $line, $ircd ],
315 );
316  
317 # Functional parser interface:
318 my $event = POE::Filter::IRCv3::parse_one_line(
319 ':foo PRIVMSG #bar :baz quux'
320 );
321  
322 =head1 DESCRIPTION
323  
324 A L<POE::Filter> for IRC traffic with support for IRCv3.2 message tags.
325  
326 Does not rely on regular expressions for parsing. Benchmarks show this
327 approach is generally faster on the most common IRC strings.
328  
329 Like any proper L<POE::Filter>, there are no POE-specific bits involved here
330 -- the filter can be used stand-alone to parse lines of IRC traffic (also see
331 L<IRC::Toolkit::Parser>).
332  
333 In fact, you do not need L<POE> installed -- if L<POE::Filter> is not
334 available, it is left out of C<@ISA> and the filter will continue working
335 normally.
336  
337 =head2 POE / Object interface
338  
339 =head3 new
340  
341 Construct a new Filter; if the B<colonify> option is true,
342 the last parameter will always have a colon prepended.
343 (This setting can also be retrieved or changed on-the-fly by calling
344 B<colonify> as a method, or changed for specific events by passing a
345 B<colonify> option via events passed to L</put>.)
346  
347 =head3 get_one_start, get_one, get_pending
348  
349 Implement the interface described in L<POE::Filter>.
350  
351 See L</get>.
352  
353 =head3 get
354  
355 my $events = $filter->get( [ $line, $another, ... ] );
356 for my $event (@$events) {
357 my $cmd = $event->{command};
358 ## See below for other keys available
359 }
360  
361 Takes an ARRAY of raw lines and returns an ARRAY of HASH-type references with
362 the following keys:
363  
364 =head4 command
365  
366 The (uppercased) command or numeric.
367  
368 =head4 params
369  
370 An ARRAY containing the event parameters.
371  
372 =head4 prefix
373  
374 The sender prefix, if any.
375  
376 =head4 tags
377  
378 A HASH of key => value pairs matching IRCv3.2 "message tags" -- see
379 L<http://ircv3.atheme.org>.
380  
381 Note that a tag can be present, but have an undefined value.
382  
383 =head3 put
384  
385 my $lines = $filter->put( [ $hash, $another_hash, ... ] );
386 for my $line (@$lines) {
387 ## Direct to socket, etc
388 }
389  
390 Takes an ARRAY of HASH-type references matching those described in L</get>
391 (documented above) and returns an ARRAY of raw IRC-formatted lines.
392  
393 =head4 colonify
394  
395 In addition to the keys described in L</get>, the B<colonify> option can be
396 specified for specific events. This controls whether or not the last
397 parameter will be colon-prefixed even if it is a single word. (Yes, IRC is
398 woefully inconsistent ...)
399  
400 Specify as part of the event hash:
401  
402 $filter->put([ { %event, colonify => 1 } ]);
403  
404 =head3 clone
405  
406 Copy the filter object (with a cleared buffer).
407  
408 =head3 debug
409  
410 Turn on/off debug output, which will display every input/output line (and
411 possibly other data in the future).
412  
413 This is enabled by default at construction time if the environment variable
414 C<POE_FILTER_IRC_DEBUG> is a true value.
415  
416 =head2 Functional interface
417  
418 =head3 parse_one_line
419  
420 If the filter is being used as a stand-alone IRC parser and speed is of the
421 essence, you can skip method resolution & queue handling by calling the parse
422 function directly using the fully-qualified name:
423  
424 my $ev = POE::Filter::IRCv3::parse_one_line( $line );
425  
426 The function takes a single line and returns a HASH whose structure is
427 described in the documentation for L</get>, above.
428  
429 If the given line cannot be parsed, the function returns false (rather than
430 throwing an exception, as L</get> would).
431  
432 There is currently no functional interface to message string composition
433 (L</put>).
434  
435 =head1 AUTHOR
436  
437 Jon Portnoy <avenj@cobaltirc.org>
438  
439 Licensed under the same terms as Perl.
440  
441 Original implementations were derived from L<POE::Filter::IRCD>,
442 which is copyright Chris Williams and Jonathan Steinert. This codebase has
443 diverged significantly.
444  
445 Major thanks to the C<#ircv3> crew on irc.atheme.org, especially C<Aerdan> and
446 C<grawity>, for various bits of inspiration.
447  
448 =head1 SEE ALSO
449  
450 L<IRC::Message::Object>
451  
452 L<POE::Filter>
453  
454 L<POE::Filter::IRCD>
455  
456 L<POE::Filter::Line>
457  
458 L<POE::Filter::Stackable>
459  
460 L<IRC::Toolkit>
461  
462 There are also some similar IRC parsing implementations in other languages.
463  
464 JavaScript: L<< https://github.com/expr/irc-message >>
465  
466 Rust: L<< https://github.com/TyOverby/irc-message >>
467  
468 =cut
↑ Summary