nexusfn commented on a Page, Join Channels  -  Oct 08, 2010

Hi, I have problems with the servers, the problem is the redirect ... It would need a command like this: !Go + nick + server ..... To redirect it to each channel

alias getConnection {
  ; Parameter $1 is the full IP address of a server Ex: 199.9.249.8
  ; Returns the server connection id that server IP is located.

  var %numConnections = $scon(0)
  var %serverIncrement = 1

  ; Which connection is the server located?
  while (%serverIncrement <= %numConnections) {
    if ($scon(%serverIncrement).$serverip == $1) {
      return $scon( [ $+ [ %serverIncrement ] ] )
    }
    else {
      inc %serverIncrement
    }
  }
}

raw REDIRECT:*:{
  scid $getConnection($2) join -n $1
}

Images to better understand:

1_ http://i1135.photobucket.com/albums/m633/nexusfn/AYUDA1-1.jpg?t=1286595306
2_ http://i1135.photobucket.com/albums/m633/nexusfn/AYUDA2-1.jpg?t=1286595315
3_ http://i1135.photobucket.com/albums/m633/nexusfn/AYUDA3-1.jpg?t=1286595313

 Respond  
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.