mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Use CString::Equals() everywhere.
* (CString::CaseCmp() == 0) became CString::Equals() * (CString::CaseCmp() != 0) became !CString::Equals() * replaced some occurrences of strn?casecmp git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1234 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -182,9 +182,9 @@ public:
|
||||
if (sLine.empty())
|
||||
break; // out of the headers
|
||||
|
||||
if (strncasecmp(sLine.c_str(), "From: ", 6) == 0)
|
||||
if (sLine.Equals("From: ", false, 6))
|
||||
tmp.sFrom = sLine.substr(6, CString::npos);
|
||||
else if (strncasecmp(sLine.c_str(), "Subject: ", 9) == 0)
|
||||
else if (sLine.Equals("Subject: ", false, 9))
|
||||
tmp.sSubject = sLine.substr(9, CString::npos);
|
||||
|
||||
if ((!tmp.sFrom.empty()) && (!tmp.sSubject.empty()))
|
||||
|
||||
Reference in New Issue
Block a user