]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspstring.cpp
Allow modules to prevent a failed connection from being closed.
[user/henk/code/inspircd.git] / src / inspstring.cpp
index 283c00d5b2fd7cfe458df77000ed55a96aea7597..faf34be91aacacf16c377f2a6cfe1c837ba68d4c 100644 (file)
@@ -136,7 +136,6 @@ void TokenList::AddList(const std::string& tokenlist)
                else
                        Add(token);
        }
-       
 }
 void TokenList::Add(const std::string& token)
 {
@@ -206,12 +205,8 @@ void TokenList::Remove(const std::string& token)
 
 std::string TokenList::ToString() const
 {
-       std::string buffer(permissive ? "*" : "-*");
-       for (insp::flat_set<std::string>::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;
 }