]>
jfr.im git - irc/pisg.git/blob - pisg/modules/Pisg/Parser/Format/psybnc.pm
1 package Pisg
::Parser
::Format
::psybnc
;
3 # Documentation for the Pisg::Parser::Format modules is found in Template.pm
10 my ($type, %args) = @_;
13 normalline
=> '^\d+-\d+-\d+-(\d+)-\d+-\d+:[^:]+::([^!]+)[^:]+ PRIVMSG [^:]+:([^\001]+)',
14 actionline
=> '^\d+-\d+-\d+-(\d+)-\d+-\d+:[^:]+::([^!]+)[^:]+:\001ACTION ([^\001]*)',
15 thirdline
=> '^\d+-\d+-\d+-(\d+)-(\d+)-\d+:[^:]+::([^! .]+)[^ ]* (\w+) \S+ :?((\S*)\s*(.*))',
24 my ($self, $line, $lines) = @_;
27 if ($line =~ /$self->{normalline}/o) {
41 my ($self, $line, $lines) = @_;
44 if ($line =~ /$self->{actionline}/o) {
58 my ($self, $line, $lines) = @_;
61 if ($line =~ /$self->{thirdline}/o) {
68 $hash{kicker
} = $hash{nick
};
71 } elsif ($4 eq 'TOPIC') {
74 } elsif ($4 eq 'MODE') {
77 } elsif ($4 eq 'JOIN') {
80 } elsif ($4 eq 'NICK') { # does this work?