summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-24 15:44:14 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-24 15:44:14 +0300
commit6927078455e017dac4b274e5aaee99ed9ce93109 (patch)
tree92788bfb7c0de5f61c3dc572efaf5bcaf06690c8 /protocols
parentb34095bdc8c849f7670e47c148a3b685d9881906 (diff)
fixes #4754 (IRC: bb-теги в чате с обрезанными стилями)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/IRCG/src/tools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IRCG/src/tools.cpp b/protocols/IRCG/src/tools.cpp
index 12bea7feec..0245ba82c9 100644
--- a/protocols/IRCG/src/tools.cpp
+++ b/protocols/IRCG/src/tools.cpp
@@ -330,14 +330,14 @@ CMStringW DoColorCodes(const wchar_t *text, bool bStrip)
if (iFG == -1)
ret.Append(L"[/color]");
else if (iFG < numColors)
- ret.Append(L"[color=%08X]", pClrTable[iFG]);
+ ret.AppendFormat(L"[color=%08X]", pClrTable[iFG]);
}
if (iBG != iOldBG) {
if (iFG == -1)
ret.Append(L"[/bkcolor]");
else if (iFG < numColors)
- ret.Append(L"[bkcolor=%08X]", pClrTable[iFG]);
+ ret.AppendFormat(L"[bkcolor=%08X]", pClrTable[iFG]);
}
}
break;