summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-21 12:51:36 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-21 12:51:36 +0300
commit999cb8b3bf7cc6c7e91916dd9ef127cfb8ca7106 (patch)
treeeee9e6b08a0390b47cb809573195ac2eba2c800b /protocols/Steam/src/steam_utils.cpp
parent454fd5713e1d460c6ef01201748805cc03f6164a (diff)
small fix to eat unknown bbcodes
Diffstat (limited to 'protocols/Steam/src/steam_utils.cpp')
-rw-r--r--protocols/Steam/src/steam_utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_utils.cpp b/protocols/Steam/src/steam_utils.cpp
index d1e838c9bf..8579c6830a 100644
--- a/protocols/Steam/src/steam_utils.cpp
+++ b/protocols/Steam/src/steam_utils.cpp
@@ -68,7 +68,9 @@ void DecodeBbcodes(SESSION_INFO *si, CMStringA &szText)
else if (!strncmp(p, "lobbyinvite ", 12)) {
szReplace = TranslateU("You were invited to play a game");
}
+ else iEnd++;
}
+ else iEnd++, idx--;
szText.Delete(idx - 1, iEnd - idx + 1);
if (!szReplace.IsEmpty())