Erk, now I see that I worded my question badly. Thinking about it properly now...the answer to my question is:
Code:
ctcp ^*:*:*: {
  if (($1 != DCC) && ($target != $me)) {
    haltdef
    stuff
  }
}


I don't drink coffee ><