Fix char comparison.

This commit is contained in:
Donal Cahill
2015-12-13 20:13:19 +00:00
parent db7e1ef162
commit 2ec724a256
+1 -1
View File
@@ -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;
}