2000-08-26 11:39:44 -04:00
|
|
|
/* CHANNEL_REC definition, used for inheritance */
|
|
|
|
|
|
|
|
#include "window-item-rec.h"
|
|
|
|
|
|
|
|
char *topic;
|
2000-11-17 09:59:32 -05:00
|
|
|
char *topic_by;
|
|
|
|
time_t topic_time;
|
2001-01-01 02:45:54 -05:00
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
GHashTable *nicks; /* list of nicks */
|
2001-01-01 02:45:54 -05:00
|
|
|
NICK_REC *ownnick; /* our own nick */
|
2000-08-26 11:39:44 -04:00
|
|
|
|
2000-11-23 16:40:07 -05:00
|
|
|
unsigned int no_modes:1; /* channel doesn't support modes */
|
2000-08-26 11:39:44 -04:00
|
|
|
char *mode;
|
|
|
|
int limit; /* user limit */
|
|
|
|
char *key; /* password key */
|
|
|
|
|
2000-11-23 16:40:07 -05:00
|
|
|
unsigned int chanop:1; /* You're a channel operator */
|
|
|
|
unsigned int names_got:1; /* Received /NAMES list */
|
|
|
|
unsigned int wholist:1; /* WHO list got */
|
|
|
|
unsigned int synced:1; /* Channel synced - all queries done */
|
2000-08-26 11:39:44 -04:00
|
|
|
|
2000-11-23 16:40:07 -05:00
|
|
|
unsigned int joined:1; /* Have we even received JOIN event for this channel? */
|
|
|
|
unsigned int left:1; /* You just left the channel */
|
|
|
|
unsigned int kicked:1; /* You just got kicked */
|
|
|
|
unsigned int destroying:1;
|
2001-05-11 12:08:48 -04:00
|
|
|
|
|
|
|
/* Return the information needed to call SERVER_REC->channels_join() for
|
|
|
|
this channel. Usually just the channel name, but may contain also the
|
|
|
|
channel key. */
|
|
|
|
char *(*get_join_data)(CHANNEL_REC *channel);
|