ns_set.c File Reference

#include "module.h"
#include "encrypt.h"

Include dependency graph for ns_set.c:

Go to the source code of this file.

Functions

int do_set (User *u)
int do_set_display (User *u, NickCore *nc, char *param)
int do_set_password (User *u, NickCore *nc, char *param)
int do_set_language (User *u, NickCore *nc, char *param)
int do_set_url (User *u, NickCore *nc, char *param)
int do_set_email (User *u, NickCore *nc, char *param)
int do_set_greet (User *u, NickCore *nc, char *param)
int do_set_icq (User *u, NickCore *nc, char *param)
int do_set_kill (User *u, NickCore *nc, char *param)
int do_set_secure (User *u, NickCore *nc, char *param)
int do_set_private (User *u, NickCore *nc, char *param)
int do_set_msg (User *u, NickCore *nc, char *param)
int do_set_hide (User *u, NickCore *nc, char *param)
int do_set_autoop (User *u, NickCore *nc, char *param)
void myNickServHelp (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 96 of file ns_set.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 41 of file ns_set.c.

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

int do_set ( User u  ) 

The /ns set command.

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

int do_set_autoop ( User u,
NickCore nc,
char *  param 
)

This works the other way around, the absence of this flag denotes ON This is so when people upgrade, and dont have the flag the default is on

Definition at line 463 of file ns_set.c.

References nickcore_::flags, MOD_CONT, NI_AUTOOP, notice_lang(), s_NickServ, stricmp(), and syntax_error().

int do_set_display ( User u,
NickCore nc,
char *  param 
)

int do_set_email ( User u,
NickCore nc,
char *  param 
)

int do_set_greet ( User u,
NickCore nc,
char *  param 
)

Definition at line 325 of file ns_set.c.

References BUFSIZE, nickcore_::greet, MOD_CONT, notice_lang(), s_NickServ, snprintf(), and sstrdup().

int do_set_hide ( User u,
NickCore nc,
char *  param 
)

int do_set_icq ( User u,
NickCore nc,
char *  param 
)

Definition at line 308 of file ns_set.c.

References nickcore_::icq, MOD_CONT, notice_lang(), and s_NickServ.

int do_set_kill ( User u,
NickCore nc,
char *  param 
)

int do_set_language ( User u,
NickCore nc,
char *  param 
)

int do_set_msg ( User u,
NickCore nc,
char *  param 
)

int do_set_password ( User u,
NickCore nc,
char *  param 
)

int do_set_private ( User u,
NickCore nc,
char *  param 
)

int do_set_secure ( User u,
NickCore nc,
char *  param 
)

Definition at line 375 of file ns_set.c.

References nickcore_::flags, MOD_CONT, NI_SECURE, notice_lang(), s_NickServ, stricmp(), and syntax_error().

int do_set_url ( User u,
NickCore nc,
char *  param 
)

Definition at line 266 of file ns_set.c.

References MOD_CONT, notice_lang(), s_NickServ, sstrdup(), and nickcore_::url.

void myNickServHelp ( User u  ) 

Add the help response to anopes /ns help output.

Parameters:
u The user who is requesting help


Generated on Sun Oct 5 09:07:04 2008 for Anope by  doxygen 1.5.7.1