Allow ENCAP GCAP to be reused to broadcast capability changes to the network.

This means that modules can now be added which change CAPs.
This commit is contained in:
William Pitcock 2008-04-01 11:45:46 -05:00
parent 289dfa61f1
commit 1f112a04f4
1 changed files with 4 additions and 1 deletions

View File

@ -114,7 +114,10 @@ me_gcap(struct Client *client_p, struct Client *source_p,
/* already had GCAPAB?! */
if(!EmptyString(source_p->serv->fullcaps))
return 0;
{
source_p->serv->caps = 0;
MyFree(source_p->serv->fullcaps);
}
DupString(source_p->serv->fullcaps, parv[1]);