$sc (Server Connection)

By xDaeMoN on Feb 06, 2006

An identifier that is similar to $scon but instead of giving the Nth connection, you give the network name.




Syntax: $sc(Network)[.identifier]




If no identifier is given, then it will give the Nth connection for the given network.




Sample identifiers are .me, .anick, .server, .ip, ...if an identifier is given, then it will give the value of that identifier for the given network.




Sample: //echo -a $sc(undernet).me -> will give your current nick in undernet.

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
  }
} 

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.