1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 13:46:38 +02:00

Add a protocol module function for extracting timestamps.

This commit is contained in:
Sadie Powell
2024-03-12 00:14:13 +00:00
parent 1538909ac0
commit 04e1a4f5c8
9 changed files with 44 additions and 31 deletions
+2 -2
View File
@@ -306,9 +306,9 @@ struct IRCDMessageUID final
if (ip == "0")
ip.clear();
auto ts = Anope::Convert<time_t>(params[2], Anope::CurTime);
auto ts = IRCD->ExtractTimestamp(params[2]);
NickAlias *na = NULL;
if (Anope::Convert<time_t>(params[8], 0) == ts)
if (IRCD->ExtractTimestamp(params[8]) == ts)
na = NickAlias::Find(params[0]);
if (params[8] != "0" && !na)