mirror of
https://github.com/znc/znc.git
synced 2026-05-05 04:52:31 +02:00
CString("off").ToBool() shouldn't be true
This commit is contained in:
@@ -970,6 +970,7 @@ bool CString::ToBool() const {
|
||||
CString sTrimmed = Trim_n();
|
||||
return (!sTrimmed.Trim_n("0").empty() &&
|
||||
!sTrimmed.Equals("false") &&
|
||||
!sTrimmed.Equals("off") &&
|
||||
!sTrimmed.Equals("no") &&
|
||||
!sTrimmed.Equals("n"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user