This is actually a port of a mIRC script I stole from nnscript, I think. In any case, depending on your circumstances a very handy script.
I used to run Irssi on a shell account, but wanted to receive DCC file transfers directly to my home box. Well, this script does just that. It forwards (relays) the DCC messages to another user on IRC.
This means you can redirect DCC file transfers to any other user; it is not limited to your home box.
(The original mIRC source is included in the file.)