From d8e6877c24ea474b098b112b91c0e94586650ece Mon Sep 17 00:00:00 2001 From: om Date: Sat, 5 Aug 2006 13:07:17 +0000 Subject: 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 --- src/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands.cpp') 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; -- cgit v1.2.3