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.
This commit is contained in:
Přemysl Eric Janouch 2015-05-15 05:45:07 +02:00
parent 489a5fa552
commit ebf9403872
1 changed files with 1 additions and 1 deletions

View File

@ -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 ------------------------------------------------