Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

memoserv.h File Reference

MemoServ headers. More...

#include "queue.h"

Go to the source code of this file.

Defines

#define MNOMEMO   0x0001
 No Memos accepted.

#define MSECURE   0x0002
 User requires identify to send/receive.

#define MSELFCLEAN   0x0004
 Automatically clean deleted memos.

#define MFORWARDED   0x0008
 Memos forwarded.

#define MEMO_UNREAD   0x0001
 Memo has not yet been read.

#define MEMO_DELETE   0x0002
 Memo has been deleted.

#define MEMO_SAVE   0x0004
 User has saved memo.

#define MEMO_FWD   0x0008
 Memo was forwarded.

#define MEMO_REPLY   0x0010
 Memo is a reply message.


Functions

void initMemoBox (MemoBox *)
 Initialize a memo box.

void delMemo (MemoBox *, MemoList *)
 Deletes a user's memo.

void checkMemos (UserList *)
 Generates user memo stats for display during signon.

void cleanMemos (UserList *)
 cleanMemos() - clean a user's memobox of deleted entries

void addMemoBlock (MemoBox *, MemoBlock *)
 Add a new memo block record to a list.

void delMemoBlock (MemoBox *, MemoBlock *)
 Destroy a memo block record.

MemoBlockgetMemoBlockData (MemoBox *, RegNickList *)
 Get information about a memo block.

void syncMemoData (time_t)
 Saves the MemoServ database.

void sendToMemoServ (UserList *, char **, int)
 Parse a MemoServ message.

int ShouldMemoExpire (MemoList *, int)
 Should a memo expire or no?


Detailed Description

MemoServ headers.

Defines various memo flags and declares functions used by MemoServ.

Author:
Chip Norkus

Max Byrd

Greg Poma

Date:
1996-1997
Id
memoserv.h,v 1.1.1.1 2003/07/04 02:54:39 Mysid Exp

Definition in file memoserv.h.


Function Documentation

void addMemoBlock MemoBox box,
MemoBlock mblock
 

Add a new memo block record to a list.

Parameters:
box Pointer to a memo box item
zap Pointer to a memo block item to be added to the list

Definition at line 1257 of file memoserv.c.

void checkMemos UserList nick  ) 
 

Generates user memo stats for display during signon.

Parameters:
nick Pointer to an online user item

Definition at line 990 of file memoserv.c.

References MEMO_DELETE, MEMO_FWD, MEMO_REPLY, MEMO_SAVE, and MEMO_UNREAD.

Referenced by NickSeeUser(), and parseLine().

void cleanMemos UserList nick  ) 
 

cleanMemos() - clean a user's memobox of deleted entries

Parameters:
nick Pointer to an online user item

Definition at line 954 of file memoserv.c.

Referenced by remUser().

void delMemo MemoBox mbox,
MemoList memo
 

Deletes a user's memo.

Parameters:
mbox Pointer to a user memobox
memo Pointer to a user memobox entry item (memo)

Definition at line 978 of file memoserv.c.

Referenced by delRegNick().

void delMemoBlock MemoBox box,
MemoBlock zap
 

Destroy a memo block record.

Parameters:
box Pointer to a memo box item
zap Pointer to a memo block item to be deleted
Warning:
After execution, 'zap' is no longer a valid pointer value

Definition at line 1232 of file memoserv.c.

References _memolist::flags, MEMO_DELETE, MEMO_SAVE, MEMO_UNREAD, and _memolist::sent.

MemoBlock* getMemoBlockData MemoBox box,
RegNickList *  senderRnl
 

Get information about a memo block.

Parameters:
box Pointer to a memo box item
text Nickname to search for a block against

Definition at line 1054 of file memoserv.c.

References MemoServ, _userlist::nick, PutReply, and RET_FAIL.

Referenced by ms_DelMemoBlock().

void sendToMemoServ UserList nick,
char **  args,
int  numargs
 

Parse a MemoServ message.

Parameters:
tmp Pointer to online user initiating the message
args Args of the message, where args[0] is the command and the extra parameters follow
numargs Highest index in the args[] array passed plus 1. so args[numargs - 1] is the highest index that can be safely accessed.

Definition at line 110 of file memoserv.c.

References ADD_MEMO_BOX, CTime, getOpFlags(), MemoServ, memoserv_commands, nextMsync, PutHelpInfo, PutReply, _userlist::reg, RET_FAIL, and RET_OK_DB.

Referenced by parseLine().

void syncMemoData time_t  next  ) 
 

Saves the MemoServ database.

Parameters:
next When the MemoServ database should next be saved (UTC)

Definition at line 2302 of file nickserv.c.

References nextMsync.

Referenced by sync_cfg().


Generated at Sat Oct 25 20:56:11 2003 for Services using Doxygen.
Services Copyr. 1996-2001 Chip Norkus, Max Byrd, Greg Poma, Michael Graff, James Hess, Dafydd James. All rights reserved See LICENSE for licensing information.