diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-12 19:30:15 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-12 19:30:15 +0200 |
commit | c23d09f65084e6088111dc974f0e290b042de89d (patch) | |
tree | adf4e9b60d41019980f2e85bcaceeb843cad2af0 /src/modules/m_operlog.cpp | |
parent | 79f46c80c2df066e88c18322a2168a144087b811 (diff) |
Simplify stringjoiner: take 1 parameter, join from begin() to end() and use space as the sep char
Diffstat (limited to 'src/modules/m_operlog.cpp')
-rw-r--r-- | src/modules/m_operlog.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index 759a9e3b8..6a7fb9a63 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -57,9 +57,7 @@ class ModuleOperLog : public Module Command* thiscommand = ServerInstance->Parser->GetHandler(command); if ((thiscommand) && (thiscommand->flags_needed == 'o')) { - std::string line; - if (!parameters.empty()) - line = irc::stringjoiner(" ", parameters, 0, parameters.size() - 1).GetJoined(); + std::string line = irc::stringjoiner(parameters).GetJoined(); std::string msg = "[" + user->GetFullRealHost() + "] " + command + " " + line; ServerInstance->Logs->Log("m_operlog", LOG_DEFAULT, "OPERLOG: " + msg); if (tosnomask) |