From d0a483120540db095a98085b0b607843c051af99 Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 17 Nov 2007 22:41:26 +0000 Subject: [PATCH] Always print a error message to the user if the connection is closed git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@875 726aef4b-f618-498e-8847-2d620e286838 --- Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Client.cpp b/Client.cpp index 9d1afad2..1f6dcb26 100644 --- a/Client.cpp +++ b/Client.cpp @@ -117,6 +117,7 @@ void CClient::ReadLine(const CString& sData) { } if (!m_pUser) { + PutClient("ERROR :You need to send your password first!"); Close(); return; } @@ -1574,6 +1575,8 @@ void CClient::AcceptLogin(CUser& User) { m_pUser = &User; if (!m_pUser->IsHostAllowed(GetRemoteIP())) { + PutClient(":irc.znc.com 463 " + GetNick() + " :Your host (" + + GetRemoteIP() + ") is not allowed"); Close(); return; }