imported.
[crypto.git] / apps / irssi / src / core / channel-rec.h
1 /* CHANNEL_REC definition, used for inheritance */
2
3 #include "window-item-rec.h"
4
5 char *topic;
6 char *topic_by;
7 time_t topic_time;
8
9 GHashTable *nicks; /* list of nicks */
10 NICK_REC *ownnick; /* our own nick */
11
12 unsigned int no_modes:1; /* channel doesn't support modes */
13 char *mode;
14 int limit; /* user limit */
15 char *key; /* password key */
16
17 unsigned int chanop:1; /* You're a channel operator */
18 unsigned int names_got:1; /* Received /NAMES list */
19 unsigned int wholist:1; /* WHO list got */
20 unsigned int synced:1; /* Channel synced - all queries done */
21
22 unsigned int joined:1; /* Have we even received JOIN event for this channel? */
23 unsigned int left:1; /* You just left the channel */
24 unsigned int kicked:1; /* You just got kicked */
25 unsigned int destroying:1;
26
27 /* Return the information needed to call SERVER_REC->channels_join() for
28    this channel. Usually just the channel name, but may contain also the
29    channel key. */
30 char *(*get_join_data)(CHANNEL_REC *channel);