summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-15 05:45:07 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-15 05:45:07 +0200
commitebf9403872809d3310451f4a86d5910185407d80 (patch)
treeb8a574af6e6351b3facd1e4ad622c8f8db7d7a89 /degesch.c
parent489a5fa552297dac23fe2ff4b740249fcc9989a7 (diff)
downloadxK-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.
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index c48d43a..6e30bbf 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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 ------------------------------------------------