Skip to content
Snippets Groups Projects
Commit 85bd0c84 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Send a PING line after message line(s), wait for response.

Is this what you had in mind, Cyan?
parent 8035e7e1
Branches
Tags
No related merge requests found
......@@ -65,7 +65,7 @@ if(!my_server) {
}
var done=0;
while(!done) {
while(!done && !js.terminated) {
while(!done && (response=my_server.recvline())) {
var resp=response.split(/\s+/);
if(resp[1]=='433') {
......@@ -107,6 +107,10 @@ else while((msg=readln())!=undefined) { /* read from stdin */
while(my_server.poll(0) && (response=my_server.recvline()))
mylog(response);
if(my_server.sendline("PING :"+ nick)) {
mylog(my_server.recvline());
}
IRC_quit(my_server);
mylog("Exiting");
exit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment