summaryrefslogtreecommitdiff
path: root/src/irc/flood/autoignore.h
blob: efa01d2715b80e136ff51b91da12932b361881a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __AUTOIGNORE_H
#define __AUTOIGNORE_H

typedef struct {
	char *nick;
	int timeleft;
	int level;
} AUTOIGNORE_REC;

GSList *server_autoignores(IRC_SERVER_REC *server);

void autoignore_add(IRC_SERVER_REC *server, const char *nick, int level);
int autoignore_remove(IRC_SERVER_REC *server, const char *mask, int level);

void autoignore_init(void);
void autoignore_deinit(void);

#endif