summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-05 13:07:17 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-05 13:07:17 +0000
commitd8e6877c24ea474b098b112b91c0e94586650ece (patch)
tree0e103c63e8a810240b69706435632ce0674c8ac1 /src
parent6ec362b129efcf2b65b30edae1e07f5333254bd8 (diff)
Hopefully stop compile warning which I don't get anyway
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4724 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index bcdf4971d..427633ef4 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -85,7 +85,7 @@ void split_chlist(userrec* user, userrec* dest, const std::string &cl)
prefix << ":" << Config->ServerName << " 319 " << user->nick << " " << dest->nick << " :";
line = prefix.str();
- for (start = 0; pos = cl.find(' ', start); start = pos+1)
+ for (start = 0; (pos = cl.find(' ', start)) != std::string::npos; start = pos+1)
{
length = (pos == std::string::npos) ? cl.length() : pos;