Fixing mIRC's broken ping implementation

https://github.com/tannn/TriviaTime/pull/147 Apparently mIRC doesn’t respond to ping messages over a certain length. This is the first part of the problem. According to http://www.irchelp.org/irchelp/rfc/ctcpspec.html

The querying client can then subtract the recieved timestamp from the current time to obtain the delay between clients over the IRC network.

The client sending the ping will do Current Time - Timestamp that it sent out (which is echoed by the target of the ping) , so it can send the ping payload in any format it finds convenient. All we have to do is:

The replying client sends back an identical message inside a notice: 01PING timestamp01

So add this to the top of your Remote script….

1
ctcp 1:ping:/raw NOTICE $nick : $+ $chr(1) $+ $1- $+ $chr(1)

Perfect. A better ping script that will display ping replies in miliseconds: http://www.mircscripts.org/showdoc.php?type=code&id=1102

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×