Skip to content
Snippets Groups Projects
Commit 7b721962 authored by cyan's avatar cyan
Browse files

* Various DCC changes

parent 4d56516c
No related branches found
No related tags found
No related merge requests found
......@@ -138,10 +138,6 @@ function Server_CTCP(onick,ouh,cmd) {
switch (cmd[0]) {
case "DCC":
if (cmd[4]) {
log("cmd1:" + cmd[1] + ":");
log("cmd2:" + cmd[2] + ":");
log("cmd3:" + cmd[3] + ":");
log("cmd4:" + cmd[4] + ":");
if ((cmd[1].toUpperCase() == "CHAT")
&& (cmd[2].toUpperCase() == "CHAT")
&& (parseInt(cmd[3]) == cmd[3])
......@@ -150,6 +146,7 @@ function Server_CTCP(onick,ouh,cmd) {
var port = parseInt(cmd[4]);
var sock = new Socket();
sock.connect(ip, port, 3 /* Timeout */);
log("*** DCC Socket Status: " + sock.is_connected);
if (sock.is_connected) {
sock.write("Enter your password.\r\n");
dcc_chats.push(new DCC_Chat(sock,onick));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment