1 |
/** |
2 |
* mymemo.h: Data structures for account information. |
3 |
* |
4 |
* Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
5 |
* Rights to this code are as documented in COPYING. |
6 |
* |
7 |
* |
8 |
* Portions of this file were derived from sources bearing the following license: |
9 |
* Copyright © 2005-2006 Atheme Development Group |
10 |
* Rights to this code are as documented in doc/pod/license.pod. |
11 |
* |
12 |
* $Id: mymemo.h,v 1.5 2007-09-09 20:05:51 pippijn Exp $ |
13 |
*/ |
14 |
|
15 |
#ifndef ACCOUNT_MYMEMO_H |
16 |
#define ACCOUNT_MYMEMO_H |
17 |
|
18 |
/* memo status flags */ |
19 |
enum mymemo_flag |
20 |
{ |
21 |
MEMO_READ = 1 << 0, |
22 |
MEMO_CHANNEL = 1 << 1 |
23 |
}; |
24 |
|
25 |
/* struct for account memos */ |
26 |
struct mymemo_t : zero_initialised |
27 |
{ |
28 |
typedef std::vector<mymemo_t *> list_type; |
29 |
|
30 |
unsigned status; |
31 |
|
32 |
unsigned mu_index; // index used in myuser_t::memo_vector |
33 |
|
34 |
char sender[NICKLEN]; |
35 |
char text[MEMOLEN]; |
36 |
time_t sent; |
37 |
}; |
38 |
|
39 |
/* memoserv rate limiting parameters */ |
40 |
#define MEMO_MAX_NUM 5 |
41 |
#define MEMO_MAX_TIME 180 |
42 |
|
43 |
#endif |