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,
|
||||
IsHidden(client_p) ? "(H) " : "", client_p->info);
|
||||
|
||||
if(IsCapable(target_p, CAP_ENCAP) &&
|
||||
!EmptyString(client_p->serv->fullcaps))
|
||||
if(!EmptyString(client_p->serv->fullcaps))
|
||||
sendto_one(target_p, ":%s ENCAP * GCAP :%s",
|
||||
client_p->id, client_p->serv->fullcaps);
|
||||
}
|
||||
|
@ -896,8 +895,7 @@ server_estab(struct Client *client_p)
|
|||
me.name, client_p->name,
|
||||
IsHidden(client_p) ? "(H) " : "", client_p->info);
|
||||
|
||||
if(IsCapable(target_p, CAP_ENCAP) &&
|
||||
!EmptyString(client_p->serv->fullcaps))
|
||||
if(!EmptyString(client_p->serv->fullcaps))
|
||||
sendto_one(target_p, ":%s ENCAP * GCAP :%s",
|
||||
client_p->name, client_p->serv->fullcaps);
|
||||
}
|
||||
|
@ -941,8 +939,7 @@ server_estab(struct Client *client_p)
|
|||
target_p->name, target_p->hopcount + 1,
|
||||
IsHidden(target_p) ? "(H) " : "", target_p->info);
|
||||
|
||||
if(IsCapable(client_p, CAP_ENCAP) &&
|
||||
!EmptyString(target_p->serv->fullcaps))
|
||||
if(!EmptyString(target_p->serv->fullcaps))
|
||||
sendto_one(client_p, ":%s ENCAP * GCAP :%s",
|
||||
get_id(target_p, client_p),
|
||||
target_p->serv->fullcaps);
|
||||
|
|
Loading…
Reference in a new issue