summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-30 19:57:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-30 19:57:51 +0000
commit4c233483f0a0f93127ee519662cafd001c7a5d6e (patch)
tree0ed8c7a53d0b89829e4ed3c1fa25a01e977277f1 /src
parentde452c57b387345da9a9aa6f96ea2dbe3a6ebd4c (diff)
In this instance find is faster than rfind
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5086 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 4c1a22990..c1a39d625 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -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