]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Add support for matching multiple hosts in <connect:{allow,deny}>.
[user/henk/code/inspircd.git] / include / users.h
index b9092b678fce7fc415b61bb0f57db523140ed121..136874bab29fa48edd0b0a0f4d50b9c9b5cbfe09 100644 (file)
@@ -91,10 +91,12 @@ struct CoreExport ConnectClass : public refcountbase
         */
        unsigned int registration_timeout;
 
-       /** Host mask for this line
-        */
+       /** Hosts that this user can connect from as a string. */
        std::string host;
 
+       /** Hosts that this user can connect from as a vector. */
+       std::vector<std::string> hosts;
+
        /** Number of seconds between pings for this line
         */
        unsigned int pingtime;
@@ -166,8 +168,9 @@ struct CoreExport ConnectClass : public refcountbase
        /** Update the settings in this block to match the given block */
        void Update(const ConnectClass* newSettings);
 
-       const std::string& GetName() { return name; }
-       const std::string& GetHost() { return host; }
+       const std::string& GetName() const { return name; }
+       const std::string& GetHost() const { return host; }
+       const std::vector<std::string>& GetHosts() const { return hosts; }
 
        /** Returns the registration timeout
         */