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