Functions | Variables

ns_recover.c File Reference

#include "module.h"
Include dependency graph for ns_recover.c:

Go to the source code of this file.

Functions

static int do_recover (User *u)
static void myNickServHelp (User *u)
static int myHelpResonse (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)

Variables

Commandc

Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 47 of file ns_recover.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters:
argc Argument count
argv Argument list
Returns:
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 29 of file ns_recover.c.

References CORE, createCommand(), do_recover(), MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddHelp(), moduleAddVersion(), moduleSetNickHelp(), moduleSetType(), myHelpResonse(), myNickServHelp(), and NICKSERV.

static int do_recover ( User u  )  [static]

The /ns recover command.

Parameters:
u The user who issued the command
MOD_CONT to continue processing other modules, MOD_STOP to stop processing.

Definition at line 83 of file ns_recover.c.

References alog(), bad_password(), collide(), duration(), enc_check_password(), EVENT_NICK_RECOVERED, EVENT_START, EVENT_STOP, finduser(), nickcore_::flags, group_identified(), user_::host, is_on_access(), user_::na, nickalias_::nc, NI_SECURE, NI_SUSPENDED, user_::nick, nickalias_::nick, notice_lang(), NS_VERBOTEN, NSReleaseTimeout, nickcore_::pass, s_NickServ, send_event(), nickalias_::status, stricmp(), syntax_error(), and user_::username.

Referenced by AnopeInit().

static int myHelpResonse ( User u  )  [static]

Show the extended help on the RECOVER command.

Parameters:
u The user who is requesting help

Definition at line 65 of file ns_recover.c.

References do_help_limited(), duration(), user_::na, notice_help(), NSReleaseTimeout, and s_NickServ.

Referenced by AnopeInit().

static void myNickServHelp ( User u  )  [static]

Add the help response to anopes /ns help output.

Parameters:
u The user who is requesting help

Definition at line 56 of file ns_recover.c.

References notice_lang(), and s_NickServ.

Referenced by AnopeInit().


Variable Documentation