]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/hashcomp.cpp
m_ident: Add an option to allow idents of users to still be prefixed with a '~' for...
[user/henk/code/inspircd.git] / src / hashcomp.cpp
index f1d0f0678c739a27afb6c16f86fce149968750c7..32f74475fd632e72ef222ff7967ff2ae7c95bc6e 100644 (file)
@@ -414,14 +414,16 @@ int irc::modestacker::GetStackedLine(std::vector<std::string> &result, int max_l
        return n;
 }
 
-irc::stringjoiner::stringjoiner(const std::vector<std::string>& sequence)
+std::string irc::stringjoiner(const std::vector<std::string>& sequence, char separator)
 {
+       std::string joined;
        if (sequence.empty())
-               return; // nothing to do here
+               return joined; // nothing to do here
 
        for (std::vector<std::string>::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)