From e0a6f7456b58fa38e1d8f3b34a7aa50035650de6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 4 Apr 2024 19:46:51 +0100 Subject: [PATCH] Fix extracting timestamps from UnrealIRCd MODE messages. Oversight from commit 04e1a4f5c8c4172ca36dd79dfd0731f4aba873a5. --- modules/protocol/unrealircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp index eca2e54df..7e0f3122d 100644 --- a/modules/protocol/unrealircd.cpp +++ b/modules/protocol/unrealircd.cpp @@ -1159,7 +1159,7 @@ struct IRCDMessageMode final if (IRCD->IsChannelValid(params[0])) { Channel *c = Channel::Find(params[0]); - auto ts = IRCD->ExtractTimestamp(params.back()); + auto ts = server_source ? IRCD->ExtractTimestamp(params.back()) : 0; if (c) c->SetModesInternal(source, modes, ts);