I have the same problem with my script. I think that this is a limitation of the /window command.

My solution for the script is:

ctcp &*:DCC:*:{ if ($1 == SEND) && ($len($nopath($filename)) > 79) { haltdef | .notice $nick File name too long. It was 79 character max. } | }

Someone know a solution to solve problem with Long filename? frown