The bracket in line 5 was not needed here is the fix It works now
on :TEXT:!join :*:{
/join $2
msg $chan $nick just Forced me to $2
}
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 -nx $1
}