summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2021-12-18 22:21:20 +0100
committerjak1 <mike.wollmann@gmail.com>2021-12-18 22:21:20 +0100
commitbecb122a45942224e597fab88f40d5811e9c825c (patch)
tree737b73109a5b0cf50d4ee7a57033e9b667595ac6 /src/utils/stringutils.cpp
parent66501994d31c6e44e1c5210af09a3c5973a7ccc9 (diff)
downloadmanaplus-becb122a45942224e597fab88f40d5811e9c825c.tar.gz
manaplus-becb122a45942224e597fab88f40d5811e9c825c.tar.bz2
manaplus-becb122a45942224e597fab88f40d5811e9c825c.tar.xz
manaplus-becb122a45942224e597fab88f40d5811e9c825c.zip
fixed ItemDB warning, parsing [00:00] timetamps
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp3
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) &&