X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspstring.cpp;h=79aef52bd4dfbdebd7b6f8314a0b1d14c03ef5e3;hb=c60f88bb5ce23d1291dddfd3e15ba71c801b7d3c;hp=283c00d5b2fd7cfe458df77000ed55a96aea7597;hpb=124c17e14134a4999afc1a5e981ab7c75b3694b9;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspstring.cpp b/src/inspstring.cpp index 283c00d5b..79aef52bd 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -206,12 +206,8 @@ void TokenList::Remove(const std::string& token) std::string TokenList::ToString() const { - std::string buffer(permissive ? "*" : "-*"); - for (insp::flat_set::const_iterator iter = tokens.begin(); iter != tokens.end(); ++iter) - { - buffer.push_back(' '); - buffer.append(*iter); - } + std::string buffer(permissive ? "* " : "-* "); + buffer.append(stdalgo::string::join(tokens)); return buffer; }