Anope IRC Services  Version 1.8
Functions
ns_register.c File Reference
#include "module.h"
#include "encrypt.h"
Include dependency graph for ns_register.c:

Go to the source code of this file.

Functions

static int do_confirm (User *u)
 
static int do_register (User *u)
 
static int do_resend (User *u)
 
static void myNickServHelp (User *u)
 
NickRequestmakerequest (const char *nick)
 
NickAliasmakenick (const char *nick)
 
static int do_sendregmail (User *u, NickRequest *nr)
 
int ns_do_register (User *u)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 60 of file ns_register.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 33 of file ns_register.c.

References c, CORE, createCommand(), do_confirm(), do_register(), do_resend(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetNickHelp(), moduleSetType(), myNickServHelp(), and NICKSERV.

static int do_confirm ( User u)
static
static int do_register ( User u)
static
static int do_resend ( User u)
static
static int do_sendregmail ( User u,
NickRequest nr 
)
static
NickAlias* makenick ( const char *  nick)
NickRequest * makerequest ( const char *  nick)

Definition at line 403 of file ns_register.c.

References alog(), insert_requestnick(), nickrequest_::nick, s_NickServ, scalloc(), and sstrdup().

Referenced by do_register().

static void myNickServHelp ( User u)
static

Add the help response to anopes /ns help output.

Parameters
uThe user who is requesting help

Definition at line 71 of file ns_register.c.

References notice_lang(), NSEmailReg, and s_NickServ.

Referenced by AnopeInit().

int ns_do_register ( User u)

Definition at line 231 of file ns_register.c.

References do_register().