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
This commit is contained in:
psychon
2007-11-17 22:41:26 +00:00
parent d78369fee0
commit d0a4831205
+3
View File
@@ -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;
}