mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-20 00:51:41 +01:00
Check for SID collision in SID command as well. We already checked in
PROTOCTL SERVERS=xxx which all servers send, so if these are all UnrealIRCd servers then we should not reach this, BUT.. you never know and non-unreal servers don't send this, so it matters for eg services.
This commit is contained in:
parent
4ef341769d
commit
a52a7304a2
1 changed files with 11 additions and 0 deletions
|
@ -1182,6 +1182,17 @@ CMD_FUNC(cmd_sid)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((acptr = find_client(parv[3], NULL)))
|
||||
{
|
||||
unreal_log(ULOG_ERROR, "link", "LINK_DENIED_DUPLICATE_SID_SERVER", client,
|
||||
"Denied server $servername with SID $sid: Server with SID $existing_client.id ($existing_client) is already linked.",
|
||||
log_data_string("servername", servername),
|
||||
log_data_string("sid", parv[3]),
|
||||
log_data_client("existing_client", acptr));
|
||||
sendto_one(client, NULL, "SQUIT %s :Server with this SID (%s) already exists (%s)", parv[3], parv[3], acptr->name);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Check deny server { } */
|
||||
if ((bconf = find_ban(NULL, servername, CONF_BAN_SERVER)))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue