mIRC Home    About    Download    Register    News    Help

Print Thread
CTCP PING #214836
17/08/09 09:41 AM
17/08/09 09:41 AM
Joined: Aug 2009
Posts: 2
M
Mikk36 Offline OP
Bowl of petunias
Mikk36  Offline OP
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.

Re: CTCP PING [Re: Mikk36] #214839
17/08/09 01:34 PM
17/08/09 01:34 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
RoCk  Offline
Hoopy frood
R

Joined: Dec 2002
Posts: 2,010

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.
Re: CTCP PING [Re: RoCk] #214840
17/08/09 02:10 PM
17/08/09 02:10 PM
Joined: Aug 2009
Posts: 2
M
Mikk36 Offline OP
Bowl of petunias
Mikk36  Offline OP
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

Re: CTCP PING [Re: Mikk36] #214841
17/08/09 02:24 PM
17/08/09 02:24 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
RoCk  Offline
Hoopy frood
R

Joined: Dec 2002
Posts: 2,010

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?

Re: CTCP PING [Re: RoCk] #214852
17/08/09 10:53 PM
17/08/09 10:53 PM
Joined: Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB Offline
Hoopy frood
RusselB  Offline
Hoopy frood
R

Joined: Aug 2004
Posts: 7,252
Ontario, Canada
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.
Re: CTCP PING [Re: Mikk36] #214859
18/08/09 01:41 AM
18/08/09 01:41 AM
Joined: Oct 2003
Posts: 3,918
Montreal, QC, Canada
A
argv0 Offline
Hoopy frood
argv0  Offline
Hoopy frood
A

Joined: Oct 2003
Posts: 3,918
Montreal, QC, Canada
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"