X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fhashcomp.cpp;h=32f74475fd632e72ef222ff7967ff2ae7c95bc6e;hb=b512f1b9667ca0479d42e771082f3bc8d92c63a2;hp=f1d0f0678c739a27afb6c16f86fce149968750c7;hpb=e244cb2c63b1ac1d85bdbb4691f7b1bd940ae804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index f1d0f0678..32f74475f 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -414,14 +414,16 @@ int irc::modestacker::GetStackedLine(std::vector &result, int max_l return n; } -irc::stringjoiner::stringjoiner(const std::vector& sequence) +std::string irc::stringjoiner(const std::vector& sequence, char separator) { + std::string joined; if (sequence.empty()) - return; // nothing to do here + return joined; // nothing to do here for (std::vector::const_iterator i = sequence.begin(); i != sequence.end(); ++i) - joined.append(*i).push_back(' '); + joined.append(*i).push_back(separator); joined.erase(joined.end()-1); + return joined; } irc::portparser::portparser(const std::string &source, bool allow_overlapped)