ON *:TEXT:!PFWeb:#: { sockopen PFWeb www.powerfriends.es 80 }
ON *:SOCKOPEN:PFWeb: {
if ($sockerr > 0) { $iif(%ichan,msg %ichan,echo -a) [4Error]: Connection problem. | sockclose $sockname | return }
sockwrite -n $sockname GET /inicio.php HTTP/1.1
sockwrite -n $sockname Host: www.powerfriends.es
sockwrite -n $sockname User-Agent: */*
sockwrite -n $sockname Connection: Close
sockwrite -n $sockname $crlf
}
ON *:SOCKp-f:PFWeb: {
if ($sockerr > 0) { $iif(%ichan,msg %ichan,echo -a) [4Error]: Connection problem. | sockclose $sockname | return }
var %p-f
sockp-f %p-f
if (*news.php?readmore=* iswm %p-f) { set -e %news $gettok($remove(%p-f,<br),9,32) }
}
ON *:SOCKCLOSE:PFWeb: {
$iif(%ichan,msg %ichan,echo -a) [ $+ $iif(%inick,$v1,WARNING) $+ ] PowerFriends: Nuevos Miembros %news $+
unset %insane_*
}