/help $comchan here is a small example of how it might be used in your script

Code:
on ^*:quit:{
  var %i = 1
  while ($comchan($nick,%i)) {
    if ($comchan($nick,%i) == #Santharia) || ($comchan($nick,%i) == #greyhawk) || ($comchan($nick,%i) == #ooc) { describe $comchan($nick,%i) watches as someone leaves the channel. 4"Ready to talk behind $nick $+ 's back?"
        inc %i
  }
  halt
}



that would do what your looking to do i think pretty nicely, u may want to edit it alil, but thats the method id try.