Prefer TrimPrefix() over Left() + LeftChomp()

This commit is contained in:
J-P Nurmi
2015-08-14 12:29:42 +02:00
parent 2d5aa8da59
commit 475acd8f00
5 changed files with 7 additions and 16 deletions
+1 -2
View File
@@ -1547,8 +1547,7 @@ bool CZNC::AddListener(const CString& sLine, CString& sError) {
sPort = sValue;
}
if (sPort.Left(1) == "+") {
sPort.LeftChomp();
if (sPort.TrimPrefix("+")) {
bSSL = true;
}