summaryrefslogtreecommitdiffstats
path: root/src/irc/core/bans.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/bans.h')
-rw-r--r--src/irc/core/bans.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/irc/core/bans.h b/src/irc/core/bans.h
new file mode 100644
index 0000000..5f05266
--- /dev/null
+++ b/src/irc/core/bans.h
@@ -0,0 +1,14 @@
+#ifndef IRSSI_IRC_CORE_BANS_H
+#define IRSSI_IRC_CORE_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