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

Go to the source code of this file.


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



Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 47 of file ns_release.c.

int AnopeInit ( int  argc,
char **  argv 

Create the command, and tell anope about it.

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

Definition at line 29 of file ns_release.c.

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

static int do_release ( User u)

The /ns release command.

uThe user who issued the command
MOD_CONTto continue processing other modules, MOD_STOP to stop processing.

Definition at line 85 of file ns_release.c.

References alog(), bad_password(), enc_check_password(), findnick(), nickcore_::flags, group_identified(), user_::host, is_on_access(), MOD_CONT, nickalias_::nc, NI_SECURE, NI_SUSPENDED, nickalias_::nick, user_::nick, notice_lang(), NS_KILL_HELD, NS_VERBOTEN, nickcore_::pass, release(), s_NickServ, nickalias_::status, syntax_error(), and user_::username.

Referenced by AnopeInit().

static int myHelpResonse ( User u)

Show the extended help on the RELEASE command.

uThe user who is requesting help

Definition at line 67 of file ns_release.c.

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

Referenced by AnopeInit().

static void myNickServHelp ( User u)

Add the help response to anopes /ns help output.

uThe user who is requesting help

Definition at line 58 of file ns_release.c.

References notice_lang(), and s_NickServ.

Referenced by AnopeInit().

Variable Documentation

Command* c

Definition at line 17 of file ns_release.c.