Skip to content
Snippets Groups Projects
Commit 4d56516c authored by cyan's avatar cyan
Browse files

* Progress towards getting DCC to work..

parent ab6ba483
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,22 @@ function main() {
mswait(10); /* Don't peg the CPU */
}
/* Take care of DCC chat sessions */
for (c in dcc_chats) {
if (!dcc_chats[c].sock.is_connected) {
log("Closing session.");
dcc_chats[c].sock.close();
continue;
}
if (dcc_chats[c].waiting_for_password) {
if (var dcc_pwd=dcc_chats[c].sock.readln()) {
dcc_chats[c].o("Acknowledged.");
}
continue;
}
}
if ( (time() - Config_Last_Write) > config_write_delay )
save_everything();
}
......
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