/ignore -t *
The -t means CTCP, and the * means *!*@* which is any nickname, any ident, any hostname.
Remember, because of the way DCC works, if you add CTCP to ignore you also cannot receive DCC sends.
See /help /ignore for more help and an explanation of what the switches do.
Regards,