proc traitement {sock} {
global url
set headers [egghttp:headers $sock]
set body [egghttp:data $sock]
regsub -all "\n" $body "" body
regsub -all -nocase {
} $body "
\n" body
#putlog $body
foreach line [split $body \n] {
regexp {} $line - DH #2007-04-05 23:20:51">2007-04-05
set date [string range $DH 0 9]
set heure [string range $DH 11 18]
if {![string match "*nuked*" $line]} {
regexp { (.*)
} $line - rlz
}
else {
regexp { (.*)
} $line - rlz
}
putserv "PRIVMSG #plop : $date ### $rlz ### $heure"
}
}
bind pub - !lastseriez lastseriez
proc lastseriez { nick uhost hand chan text } {
global url
set sock [egghttp:geturl $url traitement]
return 1
}