diff options
| author | Alexander Barton <alex@barton.de> | 2011-12-25 18:03:35 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-12-25 18:03:35 +0100 |
| commit | e86e193e010b44bc567c0fb2dfbebd81b9735358 (patch) | |
| tree | 46e937c4d4dff4ecb281cf8b4bee0f0003c1b1eb | |
| parent | ae5ebfb9f0dc1b628a5eebbb39615b3483fe05db (diff) | |
| download | ngircd-e86e193e010b44bc567c0fb2dfbebd81b9735358.tar.gz ngircd-e86e193e010b44bc567c0fb2dfbebd81b9735358.zip | |
Check G-Line and K-Line lists after authenticating clients
| -rw-r--r-- | src/ngircd/irc-login.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index eeecf96d..140d68e0 100644 --- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -937,12 +937,6 @@ Hello_User(CLIENT * Client) } #endif - if (Class_IsMember(CLASS_GLINE, Client) || - Class_IsMember(CLASS_KLINE, Client)) { - Reject_Client(Client); - return DISCONNECTED; - } - #ifdef PAM if (!Conf_PAM) { /* Don't do any PAM authentication at all, instead emulate @@ -1068,6 +1062,12 @@ Reject_Client(CLIENT *Client) static bool 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); if (!IRC_WriteStrClient |