From 0e4715e8e369414cdb140679b20f6e687fa6a853 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 Jul 2008 20:38:14 +0000 Subject: Overload IsExtBanned to provide a *string matching* version, this finally opens the way for non-hostmask based extbans, which is good ;p. On the downside, this requires rethinking of the extban exemption stuff I did yesterday. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9987 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 67a76f73b..0d4c4813c 100644 --- a/include/channels.h +++ b/include/channels.h @@ -535,6 +535,10 @@ class CoreExport Channel : public Extensible */ bool IsExtBanned(User *u, char type); + /** Overloaded version to check whether a particular string is extbanned + */ + bool IsExtBanned(const std::string &str, char type); + /** Clears the cached max bans value */ void ResetMaxBans(); -- cgit v1.2.3