summaryrefslogtreecommitdiff
path: root/src/irc/core/bans.h
blob: 0b00f19de64a829a36d6e62f2d5f233e53abeb1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __BANS_H
#define __BANS_H

void bans_init(void);
void bans_deinit(void);

/* if ban_type is <= 0, use the default */
char *ban_get_mask(IRC_CHANNEL_REC *channel, const char *nick, int ban_type);
char *ban_get_masks(IRC_CHANNEL_REC *channel, const char *nicks, int ban_type);

void ban_set(IRC_CHANNEL_REC *channel, const char *bans, int ban_type);
void ban_remove(IRC_CHANNEL_REC *channel, const char *bans);

#endif