1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-22 04:35:58 -04:00
irssi/src/irc/core/mode-lists.h

25 lines
757 B
C
Raw Normal View History

2019-05-01 16:22:22 -04:00
#ifndef IRSSI_IRC_CORE_MODE_LISTS_H
#define IRSSI_IRC_CORE_MODE_LISTS_H
typedef struct {
char *ban;
char *setby;
time_t time;
} BAN_REC;
BAN_REC *banlist_find(GSList *list, const char *ban);
BAN_REC *banlist_add(IRC_CHANNEL_REC *channel, const char *ban, const char *nick, time_t time);
void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban, const char *nick);
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);
void invitelist_add(IRC_CHANNEL_REC *channel, const char *mask);
void invitelist_remove(IRC_CHANNEL_REC *channel, const char *mask);
void mode_lists_init(void);
void mode_lists_deinit(void);
#endif