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

Go to the source code of this file.


static int do_del (User *u)
static int del_memo_callback (User *u, int num, va_list args)
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 44 of file ms_del.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 27 of file ms_del.c.

References c, CORE, createCommand(), do_del(), MEMOSERV, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetMemoHelp(), moduleSetType(), and myMemoServHelp().

static int del_memo_callback ( User u,
int  num,
va_list  args 

Delete a single memo from a MemoInfo. callback function

uUser Struct
va_listVariable Arguemtns
1 if successful, 0 if it fails

Definition at line 175 of file ms_del.c.

References delmemo(), and snprintf().

Referenced by do_del().

static int do_del ( User u)

The /ms del command.

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

Definition at line 65 of file ms_del.c.

References BUFSIZE, CA_MEMO, check_access(), CI_VERBOTEN, cs_findchan(), del_memo_callback(), delmemo(), chaninfo_::flags, MemoInfo::memocount, MemoInfo::memos, nickcore_::memos, chaninfo_::memos, MOD_CONT, moduleCleanStruct(), memo_::moduleData, user_::na, nickalias_::nc, nick_identified(), notice_lang(), memo_::number, process_numlist(), readonly, s_MemoServ, s_NickServ, snprintf(), stricmp(), syntax_error(), and memo_::text.

Referenced by AnopeInit().

static void myMemoServHelp ( User u)

Add the help response to anopes /ms help output.

uThe user who is requesting help

Definition at line 55 of file ms_del.c.

References notice_lang(), and s_MemoServ.

Referenced by AnopeInit().