Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Module for both NickServ and ChanServ ?  (Read 3791 times)

0 Members and 1 Guest are viewing this topic.

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 167
    • French Eggdrop community
Module for both NickServ and ChanServ ?
« 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 ?

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: Module for both NickServ and ChanServ ?
« Reply #1 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.
Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 167
    • French Eggdrop community
Re: Module for both NickServ and ChanServ ?
« Reply #2 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...

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: Module for both NickServ and ChanServ ?
« Reply #3 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 :)
Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 167
    • French Eggdrop community
Re: Module for both NickServ and ChanServ ?
« Reply #4 on: June 11, 2012, 08:38:15 PM »

Ok, perfect :) So I'll do like that. A ncs_* module :)
Pages: [1]   Go Up