mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
In this instance find is faster than rfind
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5086 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
de452c57b3
commit
4c233483f0
@ -410,7 +410,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
|
||||
parameter = parameters[parameter_counter++];
|
||||
|
||||
/* Yerk, invalid! */
|
||||
if ((parameter.rfind(':') == 0) || (parameter.rfind(' ') != std::string::npos))
|
||||
if ((parameter.find(':') == 0) || (parameter.rfind(' ') != std::string::npos))
|
||||
parameter = "";
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user