From becb122a45942224e597fab88f40d5811e9c825c Mon Sep 17 00:00:00 2001 From: jak1 Date: Sat, 18 Dec 2021 22:21:20 +0100 Subject: fixed ItemDB warning, parsing [00:00] timetamps --- src/utils/stringutils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index e065616fe..f8b1da46d 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -1204,6 +1204,9 @@ void replaceItemLinks(std::string &msg) if (start2 + 1 != end && end != std::string::npos) { + // excludes timestamps to get parsed + if (msg[start2 + 3] == ':') + return; // Catch multiple embeds and ignore them // so it doesn't crash the client. while ((msg.find('[', start2 + 1) != std::string::npos) && -- cgit v1.2.3-60-g2f50