2019-05-01 22:22:22 +02:00
|
|
|
#ifndef IRSSI_IRC_CORE_MODE_LISTS_H
|
|
|
|
|
#define IRSSI_IRC_CORE_MODE_LISTS_H
|
2000-04-26 08:03:38 +00:00
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
char *ban;
|
|
|
|
|
char *setby;
|
|
|
|
|
time_t time;
|
|
|
|
|
} BAN_REC;
|
|
|
|
|
|
2002-05-18 03:07:57 +00:00
|
|
|
BAN_REC *banlist_find(GSList *list, const char *ban);
|
|
|
|
|
|
2000-08-26 15:39:44 +00:00
|
|
|
BAN_REC *banlist_add(IRC_CHANNEL_REC *channel, const char *ban, const char *nick, time_t time);
|
2005-01-03 18:54:39 +00:00
|
|
|
void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban, const char *nick);
|
2000-04-26 08:03:38 +00:00
|
|
|
|
2000-08-26 15:39:44 +00:00
|
|
|
BAN_REC *banlist_exception_add(IRC_CHANNEL_REC *channel, const char *ban, const char *nick, time_t time);
|
|
|
|
|
void banlist_exception_remove(IRC_CHANNEL_REC *channel, const char *ban);
|
2000-04-26 08:03:38 +00:00
|
|
|
|
2000-08-26 15:39:44 +00:00
|
|
|
void invitelist_add(IRC_CHANNEL_REC *channel, const char *mask);
|
|
|
|
|
void invitelist_remove(IRC_CHANNEL_REC *channel, const char *mask);
|
2000-04-26 08:03:38 +00:00
|
|
|
|
|
|
|
|
void mode_lists_init(void);
|
|
|
|
|
void mode_lists_deinit(void);
|
|
|
|
|
|
|
|
|
|
#endif
|