mirror of
https://github.com/znc/znc.git
synced 2026-08-03 15:33:02 +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
@@ -1162,7 +1162,7 @@ CString CString::TrimRight_n(const CString& s) const {
|
||||
}
|
||||
|
||||
bool CString::TrimPrefix(const CString& sPrefix) {
|
||||
if (Equals(sPrefix, false, sPrefix.length())) {
|
||||
if (StartsWith(sPrefix)) {
|
||||
LeftChomp(sPrefix.length());
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user