[ngIRCd-ML] Default Client/Channel Modes

Jerome Rose jrose.pub at gmail.com
Fri Feb 25 03:11:13 CET 2011

For now I added a CLIENT_DEFAULT_MODE to defines and added it to the
Init_New_Client call in the local client init function (line 146 in
client.c). Works just fine for my current purposes, if I get some free time
I'll look into doing the same for channels, and adding config parsing so
they can be set at run time.  If I do I'll send in a patch.

Thanks for the quick replies.

On Thu, Feb 24, 2011 at 6:53 PM, Lucien Pullen <drurowin at gmail.com> wrote:

> Also sprach Jerome Rose, at 2/24/11 4:03 PM:
> > Is there an way to set the default mode for new clients and/or channels?
> In client.c, there's Init_New_Client(), which apparently takes a mode
> string.
> You could add a define in defines.h for default umodes and include that, so
> if( Modes )
>        Client_SetModes(client, Modes);
> would skip the if() since there are always modes to apply. There is
> probably a more elegant way to do this.
> _______________________________________________
> ngIRCd Mailing List: ngIRCd-ML at arthur.barton.de
> http://arthur.barton.de/mailman/listinfo/ngircd-ml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://arthur.barton.de/pipermail/ngircd-ml/attachments/20110224/a8ebc4ef/attachment.html>

More information about the ngIRCd-ML mailing list