mirror of
https://github.com/znc/znc.git
synced 2026-07-06 01:41:12 +02:00
Fix char comparison.
This commit is contained in:
+1
-1
@@ -867,7 +867,7 @@ bool CUser::IsHostAllowed(const CString& sHostMask) const {
|
||||
if (iRoutingPrefix == 0) {
|
||||
bool bBadPrefix = false;
|
||||
for (const char c : sRoutingPrefix) {
|
||||
if (!CString(c).Equals("0")) {
|
||||
if (c != '0') {
|
||||
bBadPrefix = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user