ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/account.h
Revision: 1.4
Committed: Sun Sep 16 18:54:42 2007 UTC (16 years, 8 months ago) by pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +9 -4 lines
Log Message:
#defines to enum

File Contents

# Content
1 /**
2 * account.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: account.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $
13 */
14
15 #ifndef ACCOUNT_H
16 #define ACCOUNT_H
17
18 #if 0
19 /* account related hooks */
20 typedef struct
21 {
22 mychan_t *mc;
23 sourceinfo_t *si;
24 } hook_channel_req_t;
25
26 typedef struct
27 {
28 sourceinfo_t *si;
29 myuser_t *mu;
30 mynick_t *mn;
31 } hook_user_req_t;
32
33 typedef struct
34 {
35 sourceinfo_t *si;
36 const char *account;
37 const char *email;
38 int approved; /* Write non-zero here to disallow the registration */
39 } hook_user_register_check_t;
40
41 typedef struct
42 {
43 user_t *u;
44 mynick_t *mn;
45 } hook_nick_enforce_t;
46 #endif
47
48 E void init_accounts (void);
49
50 E void expire_check (void *arg);
51
52 #endif