]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Allow ENCAP GCAP to be reused to broadcast capability changes to the network.
authorWilliam Pitcock <redacted>
Tue, 1 Apr 2008 16:45:46 +0000 (11:45 -0500)
committerWilliam Pitcock <redacted>
Tue, 1 Apr 2008 16:45:46 +0000 (11:45 -0500)
This means that modules can now be added which change CAPs.

modules/m_capab.c

index e915f4062a11c0bf21caafdf4876cbe71bd62d72..7a86835de21d1ac9d602067c695e480d8c310bbc 100644 (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]);