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

Go to the source code of this file.

Functions

static int do_set (User *u)
 
static int do_set_notify (User *u, MemoInfo *mi, char *param)
 
static int do_set_limit (User *u, MemoInfo *mi, char *param)
 
static int reload_config (int argc, char **argv)
 
static void myMemoServHelp (User *u)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 66 of file ms_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 29 of file ms_set.c.

References alog(), c, CORE, createCommand(), createEventHook(), do_set(), EVENT_RELOAD, Command_::help_param1, MEMOSERV, MOD_CONT, MOD_ERR_OK, MOD_STOP, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddEventHook(), moduleAddVersion(), moduleSetMemoHelp(), moduleSetType(), MSMaxMemos, myMemoServHelp(), and reload_config().

static int do_set ( User u)
static

The /ms set command.

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

Definition at line 87 of file ms_set.c.

References do_set_limit(), do_set_notify(), nickcore_::memos, MOD_CONT, user_::na, nickalias_::nc, nick_identified(), notice_lang(), readonly, s_MemoServ, s_NickServ, stricmp(), and syntax_error().

Referenced by AnopeInit().

static int do_set_limit ( User u,
MemoInfo mi,
char *  param 
)
static

The /ms set limit command.

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

Definition at line 167 of file ms_set.c.

References alog(), CA_MEMO, check_access(), CI_MEMO_HARDMAX, CI_VERBOTEN, cs_findchan(), findnick(), nickcore_::flags, chaninfo_::flags, user_::host, is_services_admin(), MemoInfo::memomax, nickcore_::memos, chaninfo_::memos, MOD_CONT, MSMaxMemos, user_::na, nickalias_::nc, NI_MEMO_HARDMAX, user_::nick, notice_lang(), s_MemoServ, stricmp(), syntax_error(), and user_::username.

Referenced by do_set().

static int do_set_notify ( User u,
MemoInfo mi,
char *  param 
)
static

The /ms set notify command.

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

Definition at line 118 of file ms_set.c.

References alog(), nickcore_::email, nickcore_::flags, user_::host, MOD_CONT, user_::na, nickalias_::nc, NI_MEMO_MAIL, NI_MEMO_RECEIVE, NI_MEMO_SIGNON, user_::nick, notice_lang(), s_MemoServ, stricmp(), syntax_error(), and user_::username.

Referenced by do_set().

static void myMemoServHelp ( User u)
static

Add the help response to anopes /hs help output.

Parameters
uThe user who is requesting help

Definition at line 77 of file ms_set.c.

References notice_lang(), and s_MemoServ.

Referenced by AnopeInit().

static int reload_config ( int  argc,
char **  argv 
)
static

Upon /os reload refresh the limit in help output

Definition at line 308 of file ms_set.c.

References c, EVENT_START, findCommand(), Command_::help_param1, MEMOSERV, MOD_CONT, MSMaxMemos, and stricmp().

Referenced by AnopeInit().