2000-08-26 15:39:44 +00:00
|
|
|
#ifndef __IRC_CHANNELS_H
|
|
|
|
#define __IRC_CHANNELS_H
|
|
|
|
|
2019-05-01 14:33:47 +00:00
|
|
|
#include <irssi/src/core/chat-protocols.h>
|
|
|
|
#include <irssi/src/core/channels.h>
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
/* Returns IRC_CHANNEL_REC if it's IRC channel, NULL if it isn't. */
|
|
|
|
#define IRC_CHANNEL(channel) \
|
2000-09-01 00:26:46 +00:00
|
|
|
PROTO_CHECK_CAST(CHANNEL(channel), IRC_CHANNEL_REC, chat_type, "IRC")
|
2000-08-30 22:29:55 +00:00
|
|
|
|
|
|
|
#define IS_IRC_CHANNEL(channel) \
|
|
|
|
(IRC_CHANNEL(channel) ? TRUE : FALSE)
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
#define STRUCT_SERVER_REC IRC_SERVER_REC
|
2001-11-02 01:05:14 +00:00
|
|
|
struct _IRC_CHANNEL_REC {
|
2019-05-01 14:33:47 +00:00
|
|
|
#include <irssi/src/core/channel-rec.h>
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
GSList *banlist; /* list of bans */
|
|
|
|
|
|
|
|
time_t massjoin_start; /* Massjoin start time */
|
|
|
|
int massjoins; /* Number of nicks waiting for massjoin signal.. */
|
|
|
|
int last_massjoins; /* Massjoins when last checked in timeout function */
|
2001-11-02 01:05:14 +00:00
|
|
|
};
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
void irc_channels_init(void);
|
|
|
|
void irc_channels_deinit(void);
|
|
|
|
|
|
|
|
/* Create new IRC channel record */
|
2002-05-16 00:34:37 +00:00
|
|
|
IRC_CHANNEL_REC *irc_channel_create(IRC_SERVER_REC *server, const char *name,
|
|
|
|
const char *visible_name, int automatic);
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
#define irc_channel_find(server, name) \
|
|
|
|
IRC_CHANNEL(channel_find(SERVER(server), name))
|
|
|
|
|
|
|
|
#endif
|