Some minor optimizations

I doubt this makes much of a difference, but some callgrind run with one hour
of #ubuntu pointed to this stuff. Let's hope it's at least a little little
little bit faster now


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1527 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-05-29 20:26:37 +00:00
parent aae356c8d5
commit ffe92a4b66
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ void CIRCSock::ReadLine(const CString& sData) {
if (sLine.Equals("PING ", false, 5)) {
PutIRC("PONG " + sLine.substr(5));
} else if (sLine.Token(1).Equals("PONG") && sLine.Token(3).Equals(":ZNC")) {
} else if (sLine.Equals("PONG ", false, 5) && sLine.Token(3).Equals(":ZNC")) {
// We asked for this so don't forward the reply to clients.
return;
} else if (sLine.Equals("ERROR ", false, 6)) {