diff options
author | jak1 <mike.wollmann@gmail.com> | 2021-12-18 22:21:20 +0100 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-12-18 22:21:20 +0100 |
commit | becb122a45942224e597fab88f40d5811e9c825c (patch) | |
tree | 737b73109a5b0cf50d4ee7a57033e9b667595ac6 | |
parent | 66501994d31c6e44e1c5210af09a3c5973a7ccc9 (diff) | |
download | manaplus-becb122a45942224e597fab88f40d5811e9c825c.tar.gz manaplus-becb122a45942224e597fab88f40d5811e9c825c.tar.bz2 manaplus-becb122a45942224e597fab88f40d5811e9c825c.tar.xz manaplus-becb122a45942224e597fab88f40d5811e9c825c.zip |
fixed ItemDB warning, parsing [00:00] timetamps
-rw-r--r-- | src/utils/stringutils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) && |