[ngIRCd-ML] Default Client/Channel Modes
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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ngIRCd-ML