summaryrefslogtreecommitdiff
path: root/modules/protocol/unrealircd.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-04-04 19:46:51 +0100
committerSadie Powell <sadie@witchery.services>2024-04-04 19:48:34 +0100
commite0a6f7456b58fa38e1d8f3b34a7aa50035650de6 (patch)
tree52929992fe9a483ef9731fc32247c8ae744dfe2f /modules/protocol/unrealircd.cpp
parent5a54b37aeb61fc832389236af96c46a9c7cb61c5 (diff)
Fix extracting timestamps from UnrealIRCd MODE messages.
Oversight from commit 04e1a4f5c8c4172ca36dd79dfd0731f4aba873a5.
Diffstat (limited to 'modules/protocol/unrealircd.cpp')
-rw-r--r--modules/protocol/unrealircd.cpp2
1 files changed, 1 insertions, 1 deletions
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);