summaryrefslogtreecommitdiff
path: root/src/irc/core/mode-lists.h
blob: 324b775260a3aae9a13ba37c800954c893cd85fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __MODE_LISTS_H
#define __MODE_LISTS_H

typedef struct {
	char *ban;
	char *setby;
	time_t time;
} BAN_REC;

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);

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