The first one should be
Code

ON *:op:#:{
  if ($opnick == $me) {
    if ($istok(network1 network2,$network,32) && $istok(#channel1 #channel1,$chan,32)) {  you are opped on specific network and channel }  
    if ($istok(network1 network2,$network,32) && $istok(#channel1 #channel1,$chan,32)) {  you are opped on specific network and channel }  
  }
}