This is what I have in my remote, but /rocksk doesnt connect to server
alias c.command { if ($sock(*,0) > 0) { sockwrite -tn * $1- } }
alias rocksk { sockopen rock palm.irc.fryingdutch.net 6667 }
alias netsk { sockopen net irc.netgamers.org 6667 }
on *:SOCKOPEN:sockname*:{
if ($sockerr > 0) { halt }
set %c.ident $rand(a,z) $+ $rand(1,99999)
set %c.host hostname servername : %c.ident $+ $sockname
sockwrite -tn $sockname user %c.ident %c.host
sockwrite -tn $sockname nick Amleto
}
on *:SOCKREAD:sockname*:{
sockread %c.read
if ($gettok(%c.read,1,32) == ping) && ($mid(%c.read,6,1) ==
{
sockwrite -tn $sockname PONG $gettok(%c.read,2-,32)
halt
}
}
edit:
argh, i get what the
on *:SOCKREAD:sockname* :{
is for, now so changed the rock / net names and it works better- thanks, but I dont know how to send my join channels alias to the correct server