diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 11:17:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 11:17:41 +0000 |
commit | 3326a49a89340725719b3d0c539a644281ea313d (patch) | |
tree | 427a2743140448dac382b09366dad08add4d22ee | |
parent | 5072a9a84da1c87c78d01de1c5723647f140979e (diff) |
Changed to strchr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1998 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 12b0a0620..bf50b463b 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -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]; } |