[ngIRCd-ML] Default Client/Channel Modes

Lucien Pullen drurowin at gmail.com
Fri Feb 25 00:53:43 CET 2011


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.


More information about the ngIRCd-ML mailing list