mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Prefer TrimPrefix() over Left() + LeftChomp()
This commit is contained in:
@@ -1055,9 +1055,8 @@ bool CIRCNetwork::AddServer(const CString& sName) {
|
||||
CString sHost = sLine.Token(0);
|
||||
CString sPort = sLine.Token(1);
|
||||
|
||||
if (sPort.Left(1) == "+") {
|
||||
if (sPort.TrimPrefix("+")) {
|
||||
bSSL = true;
|
||||
sPort.LeftChomp();
|
||||
}
|
||||
|
||||
unsigned short uPort = sPort.ToUShort();
|
||||
|
||||
Reference in New Issue
Block a user