diff options
author | Peter Powell <petpow@saberuk.com> | 2014-02-05 16:44:22 +0000 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-02-06 23:11:51 +0100 |
commit | 9dd4108273d95204edbc366618da6500571267df (patch) | |
tree | 2e78f10477d88e2fdb288d17cfded87b10fa2313 /src/modules/m_cap.cpp | |
parent | db0e78c5d2e0998591b274c027fef26e1ac6ce6a (diff) |
Convert irc::stringjoiner to be a method instead of a class.
Add separator parameter
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r-- | src/modules/m_cap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 9e074b219..bc79e59ec 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -74,13 +74,13 @@ class CommandCAP : public Command if (Data.ack.size() > 0) { - std::string AckResult = irc::stringjoiner(Data.ack).GetJoined(); + std::string AckResult = irc::stringjoiner(Data.ack); user->WriteCommand("CAP", "ACK :" + AckResult); } if (Data.wanted.size() > 0) { - std::string NakResult = irc::stringjoiner(Data.wanted).GetJoined(); + std::string NakResult = irc::stringjoiner(Data.wanted); user->WriteCommand("CAP", "NAK :" + NakResult); } } @@ -95,7 +95,7 @@ class CommandCAP : public Command reghold.set(user, 1); Data.Send(); - std::string Result = irc::stringjoiner(Data.wanted).GetJoined(); + std::string Result = irc::stringjoiner(Data.wanted); user->WriteCommand("CAP", subcommand + " :" + Result); } else if (subcommand == "CLEAR") @@ -105,7 +105,7 @@ class CommandCAP : public Command reghold.set(user, 1); Data.Send(); - std::string Result = irc::stringjoiner(Data.ack).GetJoined(); + std::string Result = irc::stringjoiner(Data.ack); user->WriteCommand("CAP", "ACK :" + Result); } else |