Guess who? :P
OK, last problem i have, I HOPE.
This is my test code.
$text = "User Connect blah from [EMAIL PROTECTED] gecos: 4444";
open(LOG, "<gecos.txt") or die ("Could not open log file.");
@mygeco = <LOG>;
if ($text =~ /gecos: (.*?)/i) {
$temp = $1;
foreach $pat (@mygeco) {
chomp($pat);
if ($temp =~ /$pat/) {
print "ok\n";
last;
}
}
}
What I need is to grab the 4444 part of the hook line and compare it to
my gecos.txt file. But its not working right.
This is an actual line from the monitor channel of what the bot will be
looking at:
User Connect silenca from [EMAIL PROTECTED] on
irc.linuxirc.com gecos: silencer
Any suggestions?