ircd: check_server: don't allow a connection if that would exceed the class limit
This commit is contained in:
parent
e3cea4d811
commit
d2b3a2a474
2 changed files with 14 additions and 0 deletions
|
@ -208,6 +208,15 @@ mr_server(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
|
|||
exit_client(client_p, client_p, client_p, "Invalid certificate.");
|
||||
}
|
||||
|
||||
return;
|
||||
case -7:
|
||||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||
"Connection from servername %s rejected, no more connections allowed in class",
|
||||
name);
|
||||
ilog(L_SERVER, "Access denied, no more connections allowed in class for %s",
|
||||
log_client_name(client_p, SHOW_IP));
|
||||
|
||||
exit_client(client_p, client_p, client_p, "Access denied, no more connections allowed in class");
|
||||
return;
|
||||
default:
|
||||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue