This code is working well.
if (%get == /favicon.ico) {
if ($exists($mircdirstats\favicon.ico )) {
echo -s Trying to send favicon.ico
bread d:\mirc\stats\favicon.ico 0 224 &fav
sockwrite idle.c &fav
sockclose idle.c
return done | halt
}
}
The use of "/bread file 0 -1 %binvar" didn't work for me, so I used the fixed filesize.