From 0a3ef43a2e52e85c6c167800a0db2f46e60d5a83 Mon Sep 17 00:00:00 2001 From: Donal Cahill Date: Sun, 13 Dec 2015 23:23:12 +0000 Subject: [PATCH] Fix string comparison. --- src/User.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/User.cpp b/src/User.cpp index d73c70e3..6fb9b268 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -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;