alias comnet {
; Usage: $comnet(nick, N) returns the connection ID of the Nth connection you share with nick
; Usage: $comnet(nick, N).network returns the network name of the Nth connection you share with nick
var %networks
scon -a $eval(%networks = %networks,0) $!iif($comchan( $1 , 0) ,$iif($prop == network,$network,$cid) ,$null )
return $iif($int($2) == 0, $numtok(%networks, 32), $gettok(%networks, $v1, 32))
}