diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-17 02:40:16 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-17 02:40:16 +0000 |
commit | 548eacee47a757beb90226f3f8a36ba94619bee6 (patch) | |
tree | 77a5b6b028e1bc68f01f2b5db69938ae10477bbf /include/users.h | |
parent | bf6724c049ba0f156544c49aab2008d6280e5ffa (diff) |
Hold reference to the associated ConfigTag inside ConnectClass
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11880 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<ConfigTag> 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); |