mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
Do not send snotes/logs about juped servers trying to connect.
A juped server is defined as a server that already exists with a service{} server as uplink. If a juped server is introduced by another server, this generates snotes/logs as before.
This commit is contained in:
parent
7bf78de058
commit
7b054ca30a
1 changed files with 17 additions and 6 deletions
|
@ -206,6 +206,16 @@ mr_server(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
* Definitely don't do that here. This is from an unregistered
|
||||
* connect - A1kmm.
|
||||
*/
|
||||
if (target_p->servptr->flags & FLAGS_SERVICE)
|
||||
{
|
||||
/* Assume any servers introduced by services
|
||||
* are jupes.
|
||||
* -- jilles
|
||||
*/
|
||||
sendto_one(client_p, "ERROR :Server juped.");
|
||||
}
|
||||
else
|
||||
{
|
||||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||
"Attempt to re-introduce server %s from %s",
|
||||
name, "[@255.255.255.255]");
|
||||
|
@ -213,6 +223,7 @@ mr_server(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
name, log_client_name(client_p, SHOW_IP));
|
||||
|
||||
sendto_one(client_p, "ERROR :Server already exists.");
|
||||
}
|
||||
exit_client(client_p, client_p, client_p, "Server Exists");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue