server: Simplify some code now ENCAP is mandatory.
This commit is contained in:
parent
856df9a3c4
commit
ce4fa4477b
1 changed files with 3 additions and 6 deletions
|
@ -885,8 +885,7 @@ server_estab(struct Client *client_p)
|
||||||
me.id, client_p->name, client_p->id,
|
me.id, client_p->name, client_p->id,
|
||||||
IsHidden(client_p) ? "(H) " : "", client_p->info);
|
IsHidden(client_p) ? "(H) " : "", client_p->info);
|
||||||
|
|
||||||
if(IsCapable(target_p, CAP_ENCAP) &&
|
if(!EmptyString(client_p->serv->fullcaps))
|
||||||
!EmptyString(client_p->serv->fullcaps))
|
|
||||||
sendto_one(target_p, ":%s ENCAP * GCAP :%s",
|
sendto_one(target_p, ":%s ENCAP * GCAP :%s",
|
||||||
client_p->id, client_p->serv->fullcaps);
|
client_p->id, client_p->serv->fullcaps);
|
||||||
}
|
}
|
||||||
|
@ -896,8 +895,7 @@ server_estab(struct Client *client_p)
|
||||||
me.name, client_p->name,
|
me.name, client_p->name,
|
||||||
IsHidden(client_p) ? "(H) " : "", client_p->info);
|
IsHidden(client_p) ? "(H) " : "", client_p->info);
|
||||||
|
|
||||||
if(IsCapable(target_p, CAP_ENCAP) &&
|
if(!EmptyString(client_p->serv->fullcaps))
|
||||||
!EmptyString(client_p->serv->fullcaps))
|
|
||||||
sendto_one(target_p, ":%s ENCAP * GCAP :%s",
|
sendto_one(target_p, ":%s ENCAP * GCAP :%s",
|
||||||
client_p->name, client_p->serv->fullcaps);
|
client_p->name, client_p->serv->fullcaps);
|
||||||
}
|
}
|
||||||
|
@ -941,8 +939,7 @@ server_estab(struct Client *client_p)
|
||||||
target_p->name, target_p->hopcount + 1,
|
target_p->name, target_p->hopcount + 1,
|
||||||
IsHidden(target_p) ? "(H) " : "", target_p->info);
|
IsHidden(target_p) ? "(H) " : "", target_p->info);
|
||||||
|
|
||||||
if(IsCapable(client_p, CAP_ENCAP) &&
|
if(!EmptyString(target_p->serv->fullcaps))
|
||||||
!EmptyString(target_p->serv->fullcaps))
|
|
||||||
sendto_one(client_p, ":%s ENCAP * GCAP :%s",
|
sendto_one(client_p, ":%s ENCAP * GCAP :%s",
|
||||||
get_id(target_p, client_p),
|
get_id(target_p, client_p),
|
||||||
target_p->serv->fullcaps);
|
target_p->serv->fullcaps);
|
||||||
|
|
Loading…
Reference in a new issue