#include "services.h"#include "pseudo.h"
Go to the source code of this file.
Functions | |
| E void | moduleAddMemoServCmds (void) |
| static void | new_memo_mail (NickCore *nc, Memo *m) |
| E void | rsend_notify (User *u, Memo *m, const char *chan) |
| void | ms_init (void) |
| void | memoserv (User *u, char *buf) |
| void | check_memos (User *u) |
| MemoInfo * | getmemoinfo (const char *name, int *ischan, int *isforbid) |
| void | memo_send (User *u, char *name, char *text, int z) |
| int | delmemo (MemoInfo *mi, int num) |
Variables | |
| NickCore * | nclists [1024] |
| void check_memos | ( | User * | u | ) |
check_memos: See if the given user has any unread memos, and send a NOTICE to that user if so (and if the appropriate flag is set).
| u | User Struct |
Definition at line 88 of file memoserv.c.
References alog(), debug, memo_::flags, nickcore_::flags, MemoInfo::memocount, MemoInfo::memomax, MemoInfo::memos, nickcore_::memos, MF_UNREAD, user_::na, nickalias_::nc, NI_MEMO_SIGNON, nick_recognized(), notice_lang(), memo_::number, and s_MemoServ.
Referenced by do_nick(), do_nickupdate(), and m_away().
| int delmemo | ( | MemoInfo * | mi, | |
| int | num | |||
| ) |
Delete a memo by number.
| mi | Memoinfo struct | |
| num | Memo number to delete |
Definition at line 343 of file memoserv.c.
References MemoInfo::memocount, MemoInfo::memos, moduleCleanStruct(), memo_::moduleData, memo_::number, and memo_::text.
Referenced by del_memo_callback(), and do_cancel().
| MemoInfo* getmemoinfo | ( | const char * | name, | |
| int * | ischan, | |||
| int * | isforbid | |||
| ) |
Return the MemoInfo corresponding to the given nick or channel name.
| name | Name to check | |
| ischan | - the result its a channel will be stored in here | |
| isforbid | - the result if its forbidden will be stored in here |
`isforbid' 1 if the name is forbidden, else 0.
Definition at line 146 of file memoserv.c.
References CI_VERBOTEN, cs_findchan(), findnick(), chaninfo_::flags, nickcore_::memos, chaninfo_::memos, nickalias_::nc, NS_VERBOTEN, and nickalias_::status.
Referenced by do_cancel(), and memo_send().
| void memo_send | ( | User * | u, | |
| char * | name, | |||
| char * | text, | |||
| int | z | |||
| ) |
Split from do_send, this way we can easily send a memo from any point
| u | User Struct | |
| name | Target of the memo | |
| text | Memo Text | |
| z | type see info 0 - reply to user 1 - silent 2 - silent with no delay timer 3 - reply to user and request read receipt |
Definition at line 199 of file memoserv.c.
References nickcore_::aliases, c, CA_MEMO, check_access(), checkDefCon(), channel_::ci, slist_::count, DEFCON_NO_NEW_MEMOS, nickcore_::display, findchan(), findnick(), finduser(), nickcore_::flags, memo_::flags, get_ignore(), getmemoinfo(), is_services_oper(), user_::lastmemosend, slist_::list, MemoInfo::memocount, MemoInfo::memomax, MemoInfo::memos, MF_NOTIFYS, MF_RECEIPT, MF_UNREAD, memo_::moduleData, MSNotifyAll, MSSendDelay, user_::na, chaninfo_::name, nickalias_::nc, new_memo_mail(), Command_::next, NI_MEMO_MAIL, NI_MEMO_RECEIVE, nick_identified(), nick_recognized(), NICKMAX, notice_lang(), memo_::number, readonly, s_MemoServ, s_NickServ, memo_::sender, srealloc(), sstrdup(), strscpy(), syntax_error(), memo_::text, memo_::time, nickalias_::u, and channel_::users.
Referenced by do_rsend(), do_send(), do_sendall(), do_staff(), my_memo_lang(), and rsend_notify().
| void memoserv | ( | User * | u, | |
| char * | buf | |||
| ) |
memoserv: Main MemoServ routine. Note that the User structure passed to the do_* routines will always be valid (non-NULL) and will always have a valid NickInfo pointer in the `ni' field.
| u | User Struct | |
| buf | Buffer containing the privmsg |
Definition at line 56 of file memoserv.c.
References anope_cmd_ctcp(), MEMOSERV, mod_run_cmd(), user_::na, user_::nick, notice_lang(), s_MemoServ, s_NickServ, skeleton, and stricmp().
Referenced by m_privmsg().
| void moduleAddMemoServCmds | ( | void | ) |
Definition at line 28 of file memoserv.c.
References MemoServCoreModules, MemoServCoreNumber, and modules_core_init().
Referenced by ms_init().
| void ms_init | ( | void | ) |
MemoServ initialization.
Definition at line 40 of file memoserv.c.
References moduleAddMemoServCmds().
Referenced by init_secondary().
Definition at line 370 of file memoserv.c.
References nickcore_::display, getstring2, mail, MailEnd(), MailMemoBegin(), memo_::number, mailinfo_::pipe, memo_::sender, and memo_::text.
Referenced by memo_send().
Definition at line 21 of file memoserv.c.
1.5.7.1