2000-04-26 04:03:38 -04:00
|
|
|
#ifndef __MODE_LISTS_H
|
|
|
|
#define __MODE_LISTS_H
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *ban;
|
|
|
|
char *setby;
|
|
|
|
time_t time;
|
|
|
|
} BAN_REC;
|
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
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);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-08-26 11:39:44 -04: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 04:03:38 -04:00
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
void invitelist_add(IRC_CHANNEL_REC *channel, const char *mask);
|
|
|
|
void invitelist_remove(IRC_CHANNEL_REC *channel, const char *mask);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
void mode_lists_init(void);
|
|
|
|
void mode_lists_deinit(void);
|
|
|
|
|
|
|
|
#endif
|