mirror of
https://github.com/matrix-construct/construct
synced 2024-09-08 09:45:41 +02:00
Make number_per_ident actually apply to unidented connections as well,
as documented in reference.conf. Noticed by: spb
This commit is contained in:
parent
15aa08eecb
commit
15f92147c7
1 changed files with 3 additions and 4 deletions
|
@ -483,14 +483,13 @@ attach_iline(struct Client *client_p, struct ConfItem *aconf)
|
||||||
int local_count = 0;
|
int local_count = 0;
|
||||||
int global_count = 0;
|
int global_count = 0;
|
||||||
int ident_count = 0;
|
int ident_count = 0;
|
||||||
int unidented = 0;
|
int unidented;
|
||||||
|
|
||||||
if(IsConfExemptLimits(aconf))
|
if(IsConfExemptLimits(aconf))
|
||||||
return (attach_conf(client_p, aconf));
|
return (attach_conf(client_p, aconf));
|
||||||
|
|
||||||
if(*client_p->username == '~')
|
unidented = !IsGotId(client_p) && !IsNoTilde(aconf) &&
|
||||||
unidented = 1;
|
(!IsConfDoSpoofIp(aconf) || !strchr(aconf->info.name, '@'));
|
||||||
|
|
||||||
|
|
||||||
/* find_hostname() returns the head of the list to search */
|
/* find_hostname() returns the head of the list to search */
|
||||||
RB_DLINK_FOREACH(ptr, find_hostname(client_p->host))
|
RB_DLINK_FOREACH(ptr, find_hostname(client_p->host))
|
||||||
|
|
Loading…
Reference in a new issue