From 999cb8b3bf7cc6c7e91916dd9ef127cfb8ca7106 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Jan 2025 12:51:36 +0300 Subject: small fix to eat unknown bbcodes --- protocols/Steam/src/steam_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/Steam/src') 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()) -- cgit v1.2.3