X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fhashcomp.cpp;h=895b500ae8c8d94cfeb341a0cc14242b2499dce0;hb=b9006ce3cba742ca2a22d601ba1a63a47b0402c9;hp=f1d0f0678c739a27afb6c16f86fce149968750c7;hpb=e244cb2c63b1ac1d85bdbb4691f7b1bd940ae804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index f1d0f0678..895b500ae 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -21,7 +21,6 @@ #include "inspircd.h" -#include "hashcomp.h" /****************************************************** * @@ -414,14 +413,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)