Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit fbb1ae9c authored by deuce's avatar deuce

Support IPv6 via ConnectedSocket()

parent cfa0328f
......@@ -43,8 +43,18 @@ function IRC_client_connect(hostname,nick,username,realname,port,password) {
if (!realname)
realname = IRCLIB_VERSION;
sock = new Socket();
sock.connect(hostname,port);
if (js.global.ConnectedSocket != undefined) {
try {
sock = new ConnectedSocket(hostname, port);
}
catch(e) {
return 0;
}
}
else {
sock = new Socket();
sock.connect(hostname,port);
}
if (sock.is_connected) {
if (password)
sock.send("PASS " + password + "\r\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment