Anope IRC Services

Anope Development => Modules => Topic started by: CrazyCat on June 09, 2012, 01:05:48 PM

Title: Module for both NickServ and ChanServ ?
Post by: CrazyCat on June 09, 2012, 01:05:48 PM
Hello there,

I'm working on a module modifying both NS and CS, I don't know how to name it (ns_* or cs_* or anything else ?)
Must I do two separates modules, with the CS' one checking if the NS' one is loaded ?

Title: Re: Module for both NickServ and ChanServ ?
Post by: katsklaw on June 10, 2012, 08:49:02 PM
Technically, it can be named whatever. Usually ns_* and cs_* are for NickServ and Chanserv only modules respectively. Try nscs_* or whatever. It doesn't have to be *s_blah either .. it could just be blah or cc_blah (cc for CrazyCat). Where you need to be descriptive in in the description and docs on the module site and readme explaining what's what.
Title: Re: Module for both NickServ and ChanServ ?
Post by: CrazyCat on June 11, 2012, 08:41:07 AM
Ok, thanks for this explanation.

But peharps I did a bad conception, I need yours opinions.

I intend to make a module to add ASL informations in nickserv (in fact, Age will be calculated, the user will set his bday). And the chanserv part is to add a setting to channels to limit their access to a minimal (or maximal) age.
So, the two solutions I found:
- creating only one module wich implements the two parts,
- creating two modules, but the chanserv' one must check that the nickserv' one is loaded.

I think the first solution is better, but peharps am I wrong...
Title: Re: Module for both NickServ and ChanServ ?
Post by: katsklaw on June 11, 2012, 07:41:30 PM
Definitely 1 module then If the second relies on the first anyway. No need to make things more complicated than needed :)
Title: Re: Module for both NickServ and ChanServ ?
Post by: CrazyCat on June 11, 2012, 08:38:15 PM
Ok, perfect :) So I'll do like that. A ncs_* module :)