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 c1d32bdf89
commit b37edd511a
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?! */ /* already had GCAPAB?! */
if(!EmptyString(source_p->serv->fullcaps)) 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]); DupString(source_p->serv->fullcaps, parv[1]);