mirror of
https://github.com/znc/znc.git
synced 2026-08-05 16:33:46 +02:00
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:
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user