aboutsummaryrefslogtreecommitdiffstats
path: root/src/snomasks.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-01 16:06:32 +0000
committerGravatar Sadie Powell2025-03-01 16:06:32 +0000
commit32a127d2e0c0a624d12cf9570905fec264554550 (patch)
treecdb0a259159753d4479ae36799256d1d807779d0 /src/snomasks.cpp
parentRelease v4.6.0. (diff)
Avoid the use of ConvToStr in string concatenation.
This function calls INSP_FORMAT in most cases nowadays so we may as well just call that manually.
Diffstat (limited to 'src/snomasks.cpp')
-rw-r--r--src/snomasks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp
index 1285975c0..572f39d04 100644
--- a/src/snomasks.cpp
+++ b/src/snomasks.cpp
@@ -100,7 +100,7 @@ void Snomask::Flush()
if (Count > 1)
{
std::string desc = GetDescription(LastLetter);
- std::string msg = "(last message repeated " + ConvToStr(Count) + " times)";
+ std::string msg = INSP_FORMAT("(last message repeated {} times)", Count);
FOREACH_MOD(OnSendSnotice, (LastLetter, desc, msg));
Snomask::Send(LastLetter, desc, msg);