Im confused. It seems like you want to identify IF an ignore exists on one network and if it does add it to the other entworks on connect? Also, maybe try this code for a matching if statement:
if (,dcc, isin $ignore(1).type) { echo -s command }
As a side note, you could try any of these too:
/testing {
if (dcc isin $ignore(1).type) { echo -s command1 }
if (dcc, isin $ignore(1).type) { echo -s command2 }
if (,dcc isin $ignore(1).type) { echo -s command3 }
if (,dcc, isin $ignore(1).type) { echo -s command4 }
}
All of those if statements fire off as a match. I understand that you could be using the $1 properly, but Im just not sure what you're looking for and trying to help