diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-15 05:45:07 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-15 05:45:07 +0200 |
commit | ebf9403872809d3310451f4a86d5910185407d80 (patch) | |
tree | b8a574af6e6351b3facd1e4ad622c8f8db7d7a89 | |
parent | 489a5fa552297dac23fe2ff4b740249fcc9989a7 (diff) | |
download | xK-ebf9403872809d3310451f4a86d5910185407d80.tar.gz xK-ebf9403872809d3310451f4a86d5910185407d80.tar.xz xK-ebf9403872809d3310451f4a86d5910185407d80.zip |
degesch: send PINGs with a timestamp
Instead of a username which is of no use to us.
Maybe some servers require the argument to be a target but the purpose of this
message is mainly to detect a failed connection at all, and that happens way
faster when you send some data.
-rw-r--r-- | degesch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3108,7 +3108,7 @@ on_irc_timeout (void *user_data) { // Provoke a response from the server struct server *s = user_data; - irc_send (s, "PING :%s", s->irc_user->nickname); + irc_send (s, "PING :%" PRIi64, (int64_t) time (NULL)); } // --- Processing server output ------------------------------------------------ |