<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/18714" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2011-11-13T11:16:07-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/18714</id>

		<entry>
		<author><name><![CDATA[vladdeh]]></name></author>
		<updated>2011-11-13T11:16:07-04:00</updated>

		<published>2011-11-13T11:16:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98210#p98210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98210#p98210"/>
		<title type="html"><![CDATA[pisg timestamp format]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98210#p98210"><![CDATA[
Could anyone please help me make pisg recognize this mIRC timestamp format? <div class="codebox"><p>Code: </p><pre><code>[13-11-11 12:25:31] &lt;Nick1&gt; Hello text</code></pre></div>This is the mIRC.pm file<br><div class="codebox"><p>Code: </p><pre><code>package Pisg::Parser::Format::mIRC;# Documentation for the Pisg::Parser::Format modules is found in Template.pmuse strict;$^W = 1;sub new{    my ($type, %args) = @_;    my $self = {        cfg =&gt; $args{cfg},        normalline =&gt; '^\[(\d+):\d+\S+ &lt;([^&gt;]+)&gt; (.*)$',        actionline =&gt; '^\[(\d+):\d+\S+ \* (\S+) (.*)$',        thirdline  =&gt; '^\[(\d+):(\d+)\S+ \*{3} (.+)$'    };    bless($self, $type);    return $self;}sub normalline{    my ($self, $line, $lines) = @_;    my %hash;    if ($line =~ /$self-&gt;{normalline}/o) {        $hash{hour}   = $1;        $hash{saying} = $3;        ($hash{nick}  = $2) =~ s/^[@%\+~&amp;]//o; # Remove prefix        return \%hash;    } else {        return;    }}sub actionline{    my ($self, $line, $lines) = @_;    my %hash;    if ($line =~ /$self-&gt;{actionline}/o) {        $hash{hour}   = $1;        $hash{saying} = $3;        ($hash{nick}  = $2) =~ s/^[@%\+~&amp;]//o; # Remove prefix        return \%hash;    } else {        return;    }}sub thirdline{    my ($self, $line, $lines) = @_;    my %hash;    if ($line =~ /$self-&gt;{thirdline}/o) {        my @line = split(/\s/, $3);        $hash{hour}  = $1;        $hash{min}   = $2;        ($hash{nick} = $line[0]) =~ s/^[@%\+~&amp;]//o; # Remove prefix        if ($#line &gt;= 4 &amp;&amp; ($line[1].$line[2]) eq 'waskicked') {            $hash{kicker} = $line[4];        } elsif ($#line &gt;= 4 &amp;&amp; ($line[1] eq 'changes')) {            $hash{newtopic} = join(' ', @line[4..$#line]);            $hash{newtopic} =~ s/^'//;            $hash{newtopic} =~ s/'$//;        } elsif ($#line &gt;= 3 &amp;&amp; ($line[1].$line[2]) eq 'setsmode:') {            $hash{newmode} = $line[3];        } elsif ($#line &gt;= 3 &amp;&amp; ($line[2].$line[3]) eq 'hasjoined') {            $hash{newjoin} = $line[0];        } elsif ($#line &gt;= 5 &amp;&amp; ($line[2].$line[3]) eq 'nowknown') {            $hash{newnick} = $line[5];        }        return \%hash;    } else {        return;    }}1;</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11622">vladdeh</a> — Sun Nov 13, 2011 11:16 am</p><hr />
]]></content>
	</entry>
	</feed>
