summaryrefslogtreecommitdiff
path: root/src/modules/m_samode.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-26 21:23:45 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-26 21:41:36 +0100
commit9cf448a332799a138dad0acb5b2878535770571d (patch)
tree4d922164f102e1dbf98aa3261e77da305664f532 /src/modules/m_samode.cpp
parent384ef31bc01e4a1a2e59d082c9066002410ba54a (diff)
Replace irc::stringjoiner with a generic stdalgo::string::join.
This can also be used with different types of collection containing values which are not a string.
Diffstat (limited to 'src/modules/m_samode.cpp')
-rw-r--r--src/modules/m_samode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index e4b102b92..195b767ab 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -68,7 +68,7 @@ class CommandSamode : public Command
// Viewing the modes of a user or a channel can also result in CMD_SUCCESS, but
// that is not possible with /SAMODE because we require at least 2 parameters.
const std::string& lastparse = ServerInstance->Modes.GetLastParse();
- ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SAMODE: " + (lastparse.empty() ? irc::stringjoiner(parameters) : lastparse));
+ ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SAMODE: " + (lastparse.empty() ? stdalgo::string::join(parameters) : lastparse));
}
return CMD_SUCCESS;