From 011ddfe499dfc24a2f30b75570ad9763ca9fbe23 Mon Sep 17 00:00:00 2001 From: psychon Date: Thu, 17 Apr 2008 15:52:55 +0000 Subject: [PATCH] Fix some stupid bug which even GCC found and warned on Yeah, I *really* feel stupid for letting something like this slip :( git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1024 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index f4cb3cd5..176b426e 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -927,7 +927,7 @@ void CIRCSock::SockError(int iErrno) { if (iErrno == EDOM) { sError = "Your VHost could not be resolved"; - } else if (iErrno = EADDRNOTAVAIL) { + } else if (iErrno == EADDRNOTAVAIL) { // Csocket uses this if it can't resolve the dest host name sError = strerror(iErrno); sError += " (Is your IRC server's host name valid?)";