mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Prefer StartsWith(s) over Left(n) == s
This commit is contained in:
@@ -1588,7 +1588,7 @@ void CClient::UserPortCommand(CString& sLine) {
|
||||
if (sPort.empty() || sAddr.empty() || sAccept.empty()) {
|
||||
PutStatus("Usage: AddPort <[+]port> <ipv4|ipv6|all> <web|irc|all> [bindhost [uriprefix]]");
|
||||
} else {
|
||||
bool bSSL = (sPort.Left(1).Equals("+"));
|
||||
bool bSSL = (sPort.StartsWith("+"));
|
||||
const CString sBindHost = sLine.Token(4);
|
||||
const CString sURIPrefix = sLine.Token(5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user