%network1 and %network2 has been set in variables using ON LOAD script i've wrote.
Ok, but I need to know what are the values of these variables, I explained that in order for the code to work, they need to be numbers
For example (/ are optional):
CheckChan {
scid $scon(1)
if ($me ison #chan1) { echo -a You are in #chan1 }
else { echo -a You are not in #chan1 }
if ($me ison #chan2) { echo -a You are in #chan2 }
else { echo -a You are not in #chan2 }
if ($me ison #chan3) { echo -a You are in #chan3 }
else { echo -a You are not in #chan3 }
scid $scon(2)
if ($me ison #chan4) { echo -a You are in #chan4 }
else { echo -a You are not in #chan4 }
if ($me ison #chan5) { echo -a You are in #chan5 }
else { echo -a You are not in #chan5 }
if ($me ison #chan6) { echo -a You are in #chan6 }
else { echo -a You are not in #chan6 }
}
will work for the first and the second connection (the first and second status window)