mIRC Home    About    Download    Register    News    Help

Print Thread
#214836 17/08/09 09:41 AM
Joined: Aug 2009
Posts: 2
M
Mikk36 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Aug 2009
Posts: 2
While developing my own IRC bot I noticed that the PING command does not get a proper reply from mIRC when sent from X-CHAT for example.
According to the CTCP spec The Client-To-Client Protocol (CTCP), mIRC should reply back the exact same message as the other party has sent to mIRC, but currently mIRC responds with a timestamp of its own current time (that is, current timestamp of when the CTCP request was received).
I hereby propose that the replying method would be changed accordingly.

Mikk36 #214839 17/08/09 01:34 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Originally Posted By: Mikk36

mIRC should reply back the exact same message as the other party has sent to mIRC, but currently mIRC responds with a timestamp of its own current time (that is, current timestamp of when the CTCP request was received).


It already replies exactly how you propose it should.

-
* Debug output on (@debug)
-

-> server PRIVMSG RoCk :PING 1250515911
<- :RoCk!rock@host PRIVMSG RoCk :PING 1250515911
-> server NOTICE RoCk :PING 1250515911
-
[08:31] -> [RoCk] PING
-
[08:31] [RoCk PING]
-
[08:31] [RoCk PING reply]: 1sec
-
* Debug output off
-

Last edited by RoCk; 17/08/09 01:43 PM.
RoCk #214840 17/08/09 02:10 PM
Joined: Aug 2009
Posts: 2
M
Mikk36 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Aug 2009
Posts: 2
Well, this doesn't seem like that to me:

<- :rX!~nnscript@99-499-24-720-ypm.kjj.estpak.ee PRIVMSG mikk36 :PING 1250518200
-> zone.ircworld.org NOTICE rX :PING 1250518180

Mikk36 #214841 17/08/09 02:24 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

I'm currently on three different networks and tested this on all three with the same results on each. It seems yours is being changed somewhere along the line. Possibly a script? nnscript?

RoCk #214852 17/08/09 10:53 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I have to confirm Rock's findings on the 3 networks that I'm on.

One possibility that I can think of, other than a script, is that the network may not use standard protocols, but without the network information I have no way of confirming or denying this possibility.

Just realized that the information is in the OP's 2nd post.

From zone.ircworld.org
Quote:
-> zone.ircworld.org PRIVMSG RusselB-mobile :PING 1250549830
<- :RusselB-mobile!~r.k.bairs@r98-30-29-740.commercial1.cgocable.net PRIVMSG RusselB-mobile :PING 1250549830
-> zone.ircworld.org NOTICE RusselB-mobile :PING 1250549830
<- :RusselB-mobile!~r.k.bairs@r98-30-29-740.commercial1.cgocable.net NOTICE RusselB-mobile :PING 1250549830

This confirms that the difference must be with a script being run by the OP, imo.

Last edited by RusselB; 17/08/09 10:59 PM.
Mikk36 #214859 18/08/09 01:41 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
To echo the responses above, mIRC does in fact respond properly to CTCPs on its own. However as you probably know, mIRC can be extensively scripted, so you can and should expect any behaviour beyond the default from any mIRC user, and, frankly, any user on any IRC client.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard