Browse files

server: Simplify some code now ENCAP is mandatory.

  • Loading branch information...
1 parent 856df9a commit ce4fa4477bede32ed611852046dbd514dda3b350 @jillest jillest committed Dec 19, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/s_serv.c
View
9 src/s_serv.c
@@ -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);

0 comments on commit ce4fa44

Please sign in to comment.