#include "module.h"
Go to the source code of this file.
Functions | |
| int | do_read (User *u) |
| int | read_memo_callback (User *u, int num, va_list args) |
| int | read_memo (User *u, int index, MemoInfo *mi, const char *chan) |
| void | myMemoServHelp (User *u) |
| void | rsend_notify (User *u, Memo *m, const char *chan) |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
Definition at line 31 of file ms_read.c.
References c, CORE, createCommand(), do_read(), MEMOSERV, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetMemoHelp(), moduleSetType(), and myMemoServHelp().
| int do_read | ( | User * | u | ) |
The /ms read command.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 70 of file ms_read.c.
References CA_MEMO, check_access(), CI_VERBOTEN, cs_findchan(), memo_::flags, chaninfo_::flags, MemoInfo::memocount, MemoInfo::memos, nickcore_::memos, chaninfo_::memos, MF_UNREAD, MOD_CONT, user_::na, nickalias_::nc, nick_identified(), notice_lang(), process_numlist(), read_memo(), read_memo_callback(), s_MemoServ, s_NickServ, stricmp(), and syntax_error().
Referenced by AnopeInit().
| void myMemoServHelp | ( | User * | u | ) |
Add the help response to anopes /ms help output.
| u | The user who is requesting help |
Read a memo
| u | User Struct | |
| int | Index number | |
| mi | MemoInfo struct | |
| chan | Channel Name |
Definition at line 175 of file ms_read.c.
References memo_::flags, MemoInfo::memocount, MemoInfo::memos, MF_RECEIPT, MF_UNREAD, notice_lang(), memo_::number, rsend_notify(), s_MemoServ, memo_::sender, strftime_lang(), memo_::text, and memo_::time.
Referenced by do_read(), and read_memo_callback().
| int read_memo_callback | ( | User * | u, | |
| int | num, | |||
| va_list | args | |||
| ) |
Read a memo callback function
| u | User Struct | |
| int | Index number | |
| va_list | variable arguements |
Definition at line 153 of file ms_read.c.
References MemoInfo::memocount, MemoInfo::memos, memo_::number, and read_memo().
Referenced by do_read().
Definition at line 398 of file memoserv.c.
References checkDefCon(), DEFCON_NO_NEW_MEMOS, nickcore_::display, findnick(), memo_::flags, getstring, memo_send(), MF_RECEIPT, nickalias_::nc, notice_lang(), readonly, s_MemoServ, and memo_::sender.
Referenced by read_memo().
1.5.7.1