Page 1 of 1

IRC operator kill tracker in stats page

Posted: Wed Dec 08, 2010 3:41 am
by Justasic
Well when I went to the stats page on the EFnet website I saw the IRC kill tracker, and after doing some coding and searching the ends of the internet I had no luck finding something similar. I really don't feel like making a full program, so I would like to ask how it was done or if there is any source code of an older version.

Thanks,
Justasic

Re: IRC operator kill tracker in stats page

Posted: Fri Dec 10, 2010 5:11 am
by dubkat
As far as I am aware, all the stats code for the efnet.org site is private. However, it's not hard to code your own bot to track the same information. Check out something like this..
POE::Component::IRC

You could write your own bot in minutes using that.

Good Luck.

Re: IRC operator kill tracker in stats page

Posted: Fri Dec 10, 2010 5:23 pm
by munky
the stats page is fed by a bot driven by POE::Component::IRC

in irc_notice, just look for $line =~ /Received KILL message for (\S{1,}). From (\S{1,}) Path: .*\((.*)\)/
then
my $opernick = $2;
my $killnick = $1;
my $reason = $3;