From 548eacee47a757beb90226f3f8a36ba94619bee6 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 17 Oct 2009 02:40:16 +0000 Subject: Hold reference to the associated ConfigTag inside ConnectClass git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11880 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index a898d5813..fbeba1bb9 100644 --- a/include/users.h +++ b/include/users.h @@ -59,11 +59,13 @@ enum RegistrationState { /* Required forward declaration */ class Channel; class UserResolver; +class ConfigTag; /** Holds information relevent to <connect allow> and <connect deny> tags in the config file. */ struct CoreExport ConnectClass : public refcountbase { + reference config; /** Type of line, either CC_ALLOW or CC_DENY */ char type; @@ -129,10 +131,10 @@ struct CoreExport ConnectClass : public refcountbase /** Create a new connect class with no settings. */ - ConnectClass(char type, const std::string& mask); + ConnectClass(ConfigTag* tag, char type, const std::string& mask); /** Create a new connect class with inherited settings. */ - ConnectClass(char type, const std::string& mask, const ConnectClass& parent); + ConnectClass(ConfigTag* tag, char type, const std::string& mask, const ConnectClass& parent); /** Update the settings in this block to match the given block */ void Update(const ConnectClass* newSettings); -- cgit v1.2.3