aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_setidle.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/modules/m_setidle.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/modules/m_setidle.cpp')
-rw-r--r--src/modules/m_setidle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp
index e704f345d..eab34d76c 100644
--- a/src/modules/m_setidle.cpp
+++ b/src/modules/m_setidle.cpp
@@ -61,7 +61,7 @@ public:
if (user->signon > user->idle_lastmsg)
user->signon = user->idle_lastmsg;
- ServerInstance->SNO.WriteToSnoMask('a', user->nick+" used SETIDLE to set their idle time to "+ConvToStr(idle)+" seconds");
+ ServerInstance->SNO.WriteToSnoMask('a', "{} used SETIDLE to set their idle time to {} seconds", user->nick, idle);
noterpl.SendIfCap(user, stdrplcap, this, "IDLE_TIME_SET", user->idle_lastmsg, "Idle time set.");
return CmdResult::SUCCESS;
}