mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
burst_TS6(): assume users have a UID
This commit is contained in:
parent
4dd5d304eb
commit
bea2295fed
1 changed files with 3 additions and 11 deletions
14
src/s_serv.c
14
src/s_serv.c
|
@ -507,7 +507,7 @@ burst_TS6(struct Client *client_p)
|
||||||
ubuf[1] = '\0';
|
ubuf[1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(has_id(target_p) && IsCapable(client_p, CAP_EUID))
|
if(IsCapable(client_p, CAP_EUID))
|
||||||
sendto_one(client_p, ":%s EUID %s %d %ld %s %s %s %s %s %s %s :%s",
|
sendto_one(client_p, ":%s EUID %s %d %ld %s %s %s %s %s %s %s :%s",
|
||||||
target_p->servptr->id, target_p->name,
|
target_p->servptr->id, target_p->name,
|
||||||
target_p->hopcount + 1,
|
target_p->hopcount + 1,
|
||||||
|
@ -518,7 +518,7 @@ burst_TS6(struct Client *client_p)
|
||||||
IsDynSpoof(target_p) ? target_p->orighost : "*",
|
IsDynSpoof(target_p) ? target_p->orighost : "*",
|
||||||
EmptyString(target_p->user->suser) ? "*" : target_p->user->suser,
|
EmptyString(target_p->user->suser) ? "*" : target_p->user->suser,
|
||||||
target_p->info);
|
target_p->info);
|
||||||
else if(has_id(target_p))
|
else
|
||||||
sendto_one(client_p, ":%s UID %s %d %ld %s %s %s %s %s :%s",
|
sendto_one(client_p, ":%s UID %s %d %ld %s %s %s %s %s :%s",
|
||||||
target_p->servptr->id, target_p->name,
|
target_p->servptr->id, target_p->name,
|
||||||
target_p->hopcount + 1,
|
target_p->hopcount + 1,
|
||||||
|
@ -526,16 +526,8 @@ burst_TS6(struct Client *client_p)
|
||||||
target_p->username, target_p->host,
|
target_p->username, target_p->host,
|
||||||
IsIPSpoof(target_p) ? "0" : target_p->sockhost,
|
IsIPSpoof(target_p) ? "0" : target_p->sockhost,
|
||||||
target_p->id, target_p->info);
|
target_p->id, target_p->info);
|
||||||
else
|
|
||||||
sendto_one(client_p, "NICK %s %d %ld %s %s %s %s :%s",
|
|
||||||
target_p->name,
|
|
||||||
target_p->hopcount + 1,
|
|
||||||
(long) target_p->tsinfo,
|
|
||||||
ubuf,
|
|
||||||
target_p->username, target_p->host,
|
|
||||||
target_p->servptr->name, target_p->info);
|
|
||||||
|
|
||||||
if(!has_id(target_p) || !IsCapable(client_p, CAP_EUID))
|
if(!IsCapable(client_p, CAP_EUID))
|
||||||
{
|
{
|
||||||
if(IsDynSpoof(target_p))
|
if(IsDynSpoof(target_p))
|
||||||
sendto_one(client_p, ":%s ENCAP * REALHOST %s",
|
sendto_one(client_p, ":%s ENCAP * REALHOST %s",
|
||||||
|
|
Loading…
Reference in a new issue