core: Don't use "time" tag without "server-time"
authorShane Synan <digitalcircuit36939@gmail.com>
Tue, 21 Jul 2020 00:48:28 +0000 (20:48 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 28 Nov 2020 12:42:31 +0000 (13:42 +0100)
commit95f6cd0e720266733858d56b295548418cb86039
tree6706e262a6137a139010264d9fbadc239d1bc74a
parent4e40c486dea949244b73beaf73d5ceb1ef591b5b
core: Don't use "time" tag without "server-time"

Don't use the "time" IrcTagKey without "server-time" being enabled.
This ensures that if "server-time" isn't negotiated, e.g. due to
skipping the capability, message timestamps won't be adjusted.

According to the IRCv3 specifications, servers must not send the
"time" tag without "server-time" being acknowledged, however it's
probably better to handle the case where a server might send it
unprompted.

See https://ircv3.net/specs/extensions/server-time-3.2
src/core/ircparser.cpp