mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Prefer StartsWith(s) over Left(n) == s
This commit is contained in:
+1
-1
@@ -371,7 +371,7 @@ namespace {
|
||||
* ahead/east of GMT.)"
|
||||
*/
|
||||
inline CString FixGMT(CString sTZ) {
|
||||
if (sTZ.length() >= 4 && sTZ.Left(3) == "GMT") {
|
||||
if (sTZ.length() >= 4 && sTZ.StartsWith("GMT")) {
|
||||
if (sTZ[3] == '+') {
|
||||
sTZ[3] = '-';
|
||||
} else if (sTZ[3] == '-') {
|
||||
|
||||
Reference in New Issue
Block a user