diff options
author | Sadie Powell <sadie@witchery.services> | 2024-04-04 19:46:51 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-04-04 19:48:34 +0100 |
commit | e0a6f7456b58fa38e1d8f3b34a7aa50035650de6 (patch) | |
tree | 52929992fe9a483ef9731fc32247c8ae744dfe2f /modules/protocol/unrealircd.cpp | |
parent | 5a54b37aeb61fc832389236af96c46a9c7cb61c5 (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.cpp | 2 |
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); |