mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-25 11:07:38 +00:00
Check G-Line and K-Line lists after authenticating clients
This commit is contained in:
@@ -937,12 +937,6 @@ Hello_User(CLIENT * Client)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (Class_IsMember(CLASS_GLINE, Client) ||
|
|
||||||
Class_IsMember(CLASS_KLINE, Client)) {
|
|
||||||
Reject_Client(Client);
|
|
||||||
return DISCONNECTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef PAM
|
#ifdef PAM
|
||||||
if (!Conf_PAM) {
|
if (!Conf_PAM) {
|
||||||
/* Don't do any PAM authentication at all, instead emulate
|
/* Don't do any PAM authentication at all, instead emulate
|
||||||
@@ -1068,6 +1062,12 @@ Reject_Client(CLIENT *Client)
|
|||||||
static bool
|
static bool
|
||||||
Hello_User_PostAuth(CLIENT *Client)
|
Hello_User_PostAuth(CLIENT *Client)
|
||||||
{
|
{
|
||||||
|
if (Class_IsMember(CLASS_GLINE, Client) ||
|
||||||
|
Class_IsMember(CLASS_KLINE, Client)) {
|
||||||
|
Reject_Client(Client);
|
||||||
|
return DISCONNECTED;
|
||||||
|
}
|
||||||
|
|
||||||
Introduce_Client(NULL, Client, CLIENT_USER);
|
Introduce_Client(NULL, Client, CLIENT_USER);
|
||||||
|
|
||||||
if (!IRC_WriteStrClient
|
if (!IRC_WriteStrClient
|
||||||
|
|||||||
Reference in New Issue
Block a user