We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6de1f commit 112a3e5Copy full SHA for 112a3e5
src/commands/handlers/registration.js
@@ -18,10 +18,9 @@ var handlers = {
18
19
handler.network.cap.negotiating = false;
20
21
- let time = command.getServerTime();
22
- if (time) {
23
- handler.network.addServerTimeOffset(time);
24
- } else if (handler.network.cap.isEnabled('server-time')) {
+ // We can't use the time given here as ZNC actually replays the time when it first connects
+ // to an IRC server, not now(). Send a PING so that we can get a reliable time from PONG
+ if (handler.network.cap.isEnabled('server-time')) {
25
// Ping to try get a server-time in its response as soon as possible
26
handler.connection.write('PING ' + Date.now());
27
}
0 commit comments