ms_list.c File Reference

#include "module.h"

Include dependency graph for ms_list.c:

Go to the source code of this file.

Functions

int do_list (User *u)
int list_memo_callback (User *u, int num, va_list args)
int list_memo (User *u, int index, MemoInfo *mi, int *sent_header, int new, const char *chan)
void myMemoServHelp (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 ms_list.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 29 of file ms_list.c.

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

int do_list ( User u  ) 

List the memos (if any) for the source nick or given channel.

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

int list_memo ( User u,
int  index,
MemoInfo mi,
int *  sent_header,
int  new,
const char *  chan 
)

Display a single memo entry, possibly printing the header first.

Parameters:
u User Struct
int Memo index
mi MemoInfo Struct
send_header If we are to send the headers
new If we are listing new memos
chan Channel name
Returns:
MOD_CONT

Definition at line 166 of file ms_list.c.

References memo_::flags, MemoInfo::memocount, MemoInfo::memos, MF_UNREAD, user_::nick, notice_lang(), memo_::number, s_MemoServ, memo_::sender, strftime_lang(), and memo_::time.

Referenced by list_memo_callback().

int list_memo_callback ( User u,
int  num,
va_list  args 
)

list memno callback function

Parameters:
u User Struct
int Memo number
va_list List of arguements
Returns:
result form list_memo()

Definition at line 141 of file ms_list.c.

References list_memo(), MemoInfo::memocount, MemoInfo::memos, and memo_::number.

void myMemoServHelp ( User u  ) 

Add the help response to anopes /ms help output.

Parameters:
u The user who is requesting help


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