Anope IRC Services  Version 1.8
Functions
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

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

Function Documentation

void AnopeFini ( void  )

Unload the module

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

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

static int do_set ( User u)
static

The /ns set command.

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

Definition at line 116 of file ns_set.c.

References do_set_autoop(), do_set_display(), do_set_email(), do_set_greet(), do_set_hide(), do_set_icq(), do_set_kill(), do_set_language(), do_set_msg(), do_set_password(), do_set_private(), do_set_secure(), do_set_url(), nickcore_::flags, MOD_CONT, user_::na, nickalias_::nc, NI_SUSPENDED, nickalias_::nick, nick_identified(), notice_lang(), NS_VERBOTEN, readonly, s_NickServ, nickalias_::status, stricmp(), and syntax_error().

Referenced by AnopeInit().

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

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 493 of file ns_set.c.

References alog(), nickcore_::flags, user_::host, MOD_CONT, NI_AUTOOP, user_::nick, notice_lang(), s_NickServ, stricmp(), syntax_error(), and user_::username.

Referenced by do_set().

static int do_set_display ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_email ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_greet ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_hide ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_icq ( User u,
NickCore nc,
char *  param 
)
static

Definition at line 306 of file ns_set.c.

References alog(), user_::host, nickcore_::icq, MOD_CONT, user_::nick, notice_lang(), s_NickServ, and user_::username.

Referenced by do_set().

static int do_set_kill ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_language ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_msg ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_password ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_private ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_secure ( User u,
NickCore nc,
char *  param 
)
static
static int do_set_url ( User u,
NickCore nc,
char *  param 
)
static

Definition at line 260 of file ns_set.c.

References alog(), user_::host, MOD_CONT, user_::nick, notice_lang(), s_NickServ, sstrdup(), nickcore_::url, and user_::username.

Referenced by do_set().

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 106 of file ns_set.c.

References notice_lang(), and s_NickServ.

Referenced by AnopeInit().