]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Changed to strchr
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Nov 2005 11:17:41 +0000 (11:17 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Nov 2005 11:17:41 +0000 (11:17 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1998 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index 12b0a062006325a9de70c9e3999d2d26236f6d65..bf50b463b7584832ec584858c9d75617f32354ce 100644 (file)
@@ -928,7 +928,7 @@ bool DoOneToAllButSender(std::string prefix, std::string command, std::deque<std
        std::string FullLine = ":" + prefix + " " + command;
        for (unsigned int x = 0; x < params.size(); x++)
        {
-               if (params[x].find(' ') == std::string::npos)
+               if (!strchr(params[x].c_str(),' '))
                {
                        FullLine = FullLine + " " + params[x];
                }
@@ -959,7 +959,7 @@ bool DoOneToMany(std::string prefix, std::string command, std::deque<std::string
        std::string FullLine = ":" + prefix + " " + command;
        for (unsigned int x = 0; x < params.size(); x++)
        {
-               if (params[x].find(' ') == std::string::npos)
+               if (!strchr(params[x].c_str(),' '))
                {
                        FullLine = FullLine + " " + params[x];
                }
@@ -988,7 +988,7 @@ bool DoOneToOne(std::string prefix, std::string command, std::deque<std::string>
                std::string FullLine = ":" + prefix + " " + command;
                for (unsigned int x = 0; x < params.size(); x++)
                {
-                       if (params[x].find(' ') == std::string::npos)
+                       if (!strchr(params[x].c_str(),' '))
                        {
                                FullLine = FullLine + " " + params[x];
                        }