Quote:
If you could, set it up for so that it does two random names, nick1 and nick2 for example, and then if neither of these match, perform a ison to the channel of #Santharia and #Salitonia , using the && part of a if , if the nick being on these channels, sending them a message. If the nick isn't on these two channel, then ignore the ping entirely.


try this
Code:
ctcp *:ping:*:{
  if ($nick == Tom) || ($nick == Harry) {
    if ($nick ison #Santharia) && ($nick ison #Salitonia) {
      msg $nick you are $nick and are in both  #Santharia  and  #Salitonia
    }
  }
  else halt
}


either one person or the other, in BOTH channels
other wise it stops, this also means anyone else pings you they will not get a reply.