Okay, well, this may not be the ideal solution but.

On *:FILERCVD:*:{
%tmp = $nopath($filename) | %tmp2 = $nick | %i = $get(0)
while (%i) {
if (($get(%i).file == %tmp) && ($get(%i) == %tmp2)) { close -g $get(%i) }
dec %i
}
}

Eamonn.