core: Handle single-parameter PONG replies
authorShane Synan <digitalcircuit36939@gmail.com>
Mon, 18 Jun 2018 03:50:01 +0000 (22:50 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Jun 2018 22:54:10 +0000 (00:54 +0200)
commit425364f5f68a37582ddfa0494f4305f98f761e23
treed285ccc891ab5dbe1234bdff3d9eeba7428abeeb
parenta68417655dbb2982567642e75e95292fd57e6aec
core: Handle single-parameter PONG replies

In processIrcEventPong, allow for single-parameter PONG replies.
Some IRC servers reply with server name then quote, others reply with
just the quote.

Log a debug message for invalid timestamps.  It's not a known error
as the user can request arbitrary PING replies, but it should be
logged to simplify tracking down IRC servers that mangle or outright
ignore the PING parameters.

(Yes, some IRC servers do this.)

Handle single-parameter PONG replies in EventStringifier, too.

Clarify and reformat comments.
src/core/coresessioneventprocessor.cpp
src/core/eventstringifier.cpp