From f00094febf62beb74fb45a765a9fccd1ba4c8b8b Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 4 Apr 2008 21:43:21 +0000 Subject: The start of extended bans infrastructure: syntax is e.g. +b n:w00tdiff@*, bans of any type can be applied and checked against, but there's more to come with this. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9337 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 693f429f4..bf025ec56 100644 --- a/include/channels.h +++ b/include/channels.h @@ -528,6 +528,13 @@ class CoreExport Channel : public Extensible */ bool IsBanned(User* user); + /** Check whether an extban of a given type matches + * a given user for this channel. + * @param u The user to match bans against + * @param type The type of extban to check + */ + bool IsExtBanned(User *u, char type); + /** Clears the cached max bans value */ void ResetMaxBans(); -- cgit v1.3.1-10-gc9f91