mirror of
https://github.com/znc/znc.git
synced 2026-05-07 22:04:46 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user