-
Notifications
You must be signed in to change notification settings - Fork 6
/
channels.h
57 lines (47 loc) · 1.54 KB
/
channels.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Online channel data structure.
**
** Based on ircdservices ver. by Andy Church
** Chatnet modifications (c) 2001-2002
**
** E-mail: routing@lists.chatnet.org
** Authors:
**
** Vampire (vampire@alias.chatnet.org)
** Thread (thread@alias.chatnet.org)
** MRX (tom@rooted.net)
**
** *** DO NOT DISTRIBUTE ***
*/
#ifndef CHANNELS_H
#define CHANNELS_H
/*************************************************************************/
struct channel_ {
Channel *next, *prev;
char name[CHANMAX];
ChannelInfo *ci; /* Corresponding ChannelInfo */
time_t creation_time; /* When channel was created */
char *topic;
char topic_setter[NICKMAX]; /* Who set the topic */
time_t topic_time; /* When topic was set */
int32 mode; /* CMODE_* (binary) channel modes */
int32 limit; /* 0 if none */
char *key; /* NULL if none */
int32 bancount, bansize;
char **bans;
#ifdef HAVE_BANEXCEPT
int32 exceptcount, exceptsize;
char **excepts;
#endif
struct c_userlist {
struct c_userlist *next, *prev;
User *user;
int32 mode; /* CUMODE_* modes (chanop, voice) */
} *users;
time_t server_modetime; /* Time of last server MODE */
time_t chanserv_modetime; /* Time of last check_modes() */
int16 server_modecount; /* Number of server MODEs this second*/
int16 chanserv_modecount; /* Number of check_mode()'s this sec */
int16 bouncy_modes; /* Did we fail to set modes here? */
};
/*************************************************************************/
#endif