mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Use CString::StartsWith()
Replace the use of deprecated CString::Equals(str,bool,int) by CString::StartsWith(str,cs) which is more pleasant to read.
This commit is contained in:
+1
-1
@@ -391,7 +391,7 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) {
|
||||
for (unsigned int a = 1; a < vsArgs.size(); a++) {
|
||||
const CString& sArg = vsArgs[a];
|
||||
|
||||
if (sArg.Equals("ESC=", false, 4)) {
|
||||
if (sArg.StartsWith("ESC=")) {
|
||||
eEscape = CString::ToEscape(sArg.LeftChomp_n(4));
|
||||
} else {
|
||||
CString sValue = GetValue(sArg);
|
||||
|
||||
Reference in New Issue
Block a user