mirror of
https://github.com/znc/znc.git
synced 2026-08-06 00:43:19 +02:00
Prefer TrimPrefix() over Left() + LeftChomp()
This commit is contained in:
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user