Fix string comparison.

This commit is contained in:
Donal Cahill
2015-12-13 23:23:12 +00:00
parent 15c200c908
commit 0a3ef43a2e

View File

@@ -864,7 +864,7 @@ bool CUser::IsHostAllowed(const CString& sHostMask) const {
// If iRoutingPrefix is 0, it could be due to ToInt() failing, so
// sRoutingPrefix needs to be all zeroes
if (iRoutingPrefix == 0 && !sRoutingPrefix.Equals("0")) continue;
if (iRoutingPrefix == 0 && sRoutingPrefix != "0") continue;
// Convert each IP from a numeric string to an addrinfo
addrinfo aiHints;