I have tried using the -e switch with no luck.
The socket does not even successfully open
When the on sockopen triggers, you have to check for $sockerr, which will be different from 0 if an error occured and in this case, you're not connected.
In your case, $sockerr is probably 0 and you're connected.
I'm not sure what you're expecting but after being connected you need to communicate with the server, here it's an irc server so you need to send the appropriate command such as NICK and
USER .
Try :
alias test_ssl {
if ($sock(test_ssl)) sockclose test_ssl
sockopen -e test_ssl irc.hackthissite.org 7000
echo 4 -s * /test_ssl: Opening ssl socket...
}
on *:sockopen:test_ssl:{
if ($sockerr) echo 4 -s * /test_ssl An error occured : $sock(test_ssl).wsmsg
else {
echo 4 -s * /test_ssl: Connected.
sockwrite -n test_ssl NICK :test_ssl
sockwrite -n test_ssl USER test_ssl test_ssl test_ssl :test_ssl
}
}
on *:sockread:test_ssl: {
var %tmpdata
sockread %tmpdata
tokenize 32 %tmpdata
echo 4 -s * /test_ssl: $1-
;here is a basic line so you'll respond to PING command with PONG in order to stay connected
if ($1 == PING) sockwrite -n test_ssl PONG $remove($2,:)
}