*/
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;
/** 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
*/
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;
/** 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 = "");