It depends if it's a private notice (on *:notice:*:?:{ }) or channel notice (on *:notice:*:#:{ }).

For private notices you could do something like this:

Code:
on me:*:join:#:{ set -u1 %oj $cid $chan }
on ^*:notice:*:?:{
  if ($nick == chanserv) && ($gettok(%oj,1,32) == $cid) { 
    echo $gettok(%oj,2,32) <output text> 
    unset %oj
  }
  else { ;normal notice }
  haltdef
}


Although that would probably break if you, chanserv, or the server are lagged.