]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Use IsCTCP in blockcolor for ignoring CTCPs.
[user/henk/code/inspircd.git] / include / users.h
index b9092b678fce7fc415b61bb0f57db523140ed121..8045d57050c5d56ff670e27f7aae466ebec11146 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
         */
@@ -240,19 +243,19 @@ struct CoreExport ConnectClass : public refcountbase
 class CoreExport User : public Extensible
 {
  private:
-       /** Cached nick!ident@dhost value using the displayed hostname
+       /** Cached nick!ident\@dhost value using the displayed hostname
         */
        std::string cached_fullhost;
 
-       /** Cached ident@ip value using the real IP address
+       /** Cached ident\@ip value using the real IP address
         */
        std::string cached_hostip;
 
-       /** Cached ident@realhost value using the real hostname
+       /** Cached ident\@realhost value using the real hostname
         */
        std::string cached_makehost;
 
-       /** Cached nick!ident@realhost value using the real hostname
+       /** Cached nick!ident\@realhost value using the real hostname
         */
        std::string cached_fullrealhost;
 
@@ -847,7 +850,6 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
 
        /** Set the connect class to which this user belongs to.
         * @param explicit_name Set this string to tie the user to a specific class name. Otherwise, the class is fitted by checking \<connect> tags from the configuration file.
-        * @return A reference to this user's current connect class.
         */
        void SetClass(const std::string &explicit_name = "");