Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
7b4fd42c
Commit
7b4fd42c
authored
May 26, 2021
by
Rob Swindell
💬
Browse files
Send a PING line after message line(s), wait for response.
Is this what you had in mind, Cyan?
parent
c3b48b24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
exec/ircmsg.js
exec/ircmsg.js
+5
-1
No files found.
exec/ircmsg.js
View file @
7b4fd42c
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment