Here's what I use:
alias sc {
var %o = 1, %p = $$1
while $scon(%o).network {
if ( %p == $v1 ) {
if ( $prop ) return $($+($,scon(%o).,$prop),2)
else return %o
}
inc %o
}
}
An identifier that is similar to $scon but instead of giving the Nth connection, you give the network name.
Syntax: $sc(Network)[.identifier]
Sample: //echo -a $sc(undernet).me -> will give your current nick in undernet.