It's from /debug - DCC's are sent by PRIVMSG - since they're a CTCP, which is also sent by PRIVMSG with the $chr(1) block.

That's what happens when you /dcc send nick file