Anope IRC Services  Version 1.8
Macros | Functions | Variables
ns_maxemail.c File Reference
#include "module.h"
Include dependency graph for ns_maxemail.c:

Go to the source code of this file.

Macros

#define AUTHOR   "Anope"
 
#define VERSION   VERSION_STRING
 
#define LNG_NUM_STRINGS   2
 
#define LNG_NSEMAILMAX_REACHED   0
 
#define LNG_NSEMAILMAX_REACHED_ONE   1
 

Functions

static void my_load_config (void)
 
static void my_add_languages (void)
 
static int my_ns_register (User *u)
 
static int my_ns_set (User *u)
 
static int my_event_reload (int argc, char **argv)
 
static int my_event_addcommand (int argc, char **argv)
 
static int my_event_delcommand (int argc, char **argv)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 
static int count_email_in_use (char *email, User *u)
 
static int check_email_limit_reached (char *email, User *u)
 

Variables

static int NSEmailMax = 0
 
static int added_register = 0
 

Macro Definition Documentation

#define AUTHOR   "Anope"

Definition at line 18 of file ns_maxemail.c.

Referenced by AnopeInit().

#define LNG_NSEMAILMAX_REACHED   0

Definition at line 33 of file ns_maxemail.c.

Referenced by check_email_limit_reached().

#define LNG_NSEMAILMAX_REACHED_ONE   1

Definition at line 34 of file ns_maxemail.c.

Referenced by check_email_limit_reached().

#define LNG_NUM_STRINGS   2

Definition at line 32 of file ns_maxemail.c.

Referenced by my_add_languages().

#define VERSION   VERSION_STRING

Definition at line 19 of file ns_maxemail.c.

Referenced by AnopeInit().

Function Documentation

void AnopeFini ( void  )

Definition at line 92 of file ns_maxemail.c.

int AnopeInit ( int  argc,
char **  argv 
)
static int check_email_limit_reached ( char *  email,
User u 
)
static
static int count_email_in_use ( char *  email,
User u 
)
static
static void my_add_languages ( void  )
static

Definition at line 230 of file ns_maxemail.c.

References LANG_DE, LANG_EN_US, LANG_FR, LANG_IT, LANG_NL, LANG_PT, LANG_RU, LNG_NUM_STRINGS, and moduleInsertLanguage().

Referenced by AnopeInit().

static int my_event_addcommand ( int  argc,
char **  argv 
)
static
static int my_event_delcommand ( int  argc,
char **  argv 
)
static

Definition at line 207 of file ns_maxemail.c.

References added_register, MOD_CONT, moduleDelCommand(), NICKSERV, and stricmp().

Referenced by AnopeInit().

static int my_event_reload ( int  argc,
char **  argv 
)
static

Definition at line 179 of file ns_maxemail.c.

References EVENT_START, MOD_CONT, my_load_config(), and stricmp().

Referenced by AnopeInit().

static void my_load_config ( void  )
static

Definition at line 218 of file ns_maxemail.c.

References alog(), debug, moduleGetConfigDirective(), NSEmailMax, PARAM_INT, and PARAM_RELOAD.

Referenced by AnopeInit(), and my_event_reload().

static int my_ns_register ( User u)
static
static int my_ns_set ( User u)
static

Definition at line 150 of file ns_maxemail.c.

References check_email_limit_reached(), MOD_CONT, moduleGetLastBuffer(), myStrGetToken(), and stricmp().

Referenced by AnopeInit().

Variable Documentation

int added_register = 0
static

Definition at line 30 of file ns_maxemail.c.

Referenced by AnopeInit(), my_event_addcommand(), and my_event_delcommand().

int NSEmailMax = 0
static

Definition at line 29 of file ns_maxemail.c.

Referenced by check_email_limit_reached(), and my_load_config().