diff options
author | Daniel Vassdal <shutter@canternet.org> | 2013-07-01 12:31:36 -0700 |
---|---|---|
committer | Daniel Vassdal <shutter@canternet.org> | 2013-07-02 10:55:51 -0700 |
commit | 3ae91bafe711b26ffae1aa27cfd4f5fe7bfc2347 (patch) | |
tree | 2bf6f811b277b633fedc0ba2abdee2886183bea8 /include | |
parent | f2cdf27dd9c45f91f4184b81ea3b9be7c5d88173 (diff) |
Allow for skipping clone checking before DNS is complete.
Diffstat (limited to 'include')
-rw-r--r-- | include/configreader.h | 7 | ||||
-rw-r--r-- | include/users.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/configreader.h b/include/configreader.h index a17c5cf3e..51ced2ec7 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -373,6 +373,13 @@ class CoreExport ServerConfig */ int MaxConn; + /** If we should check for clones during CheckClass() in AddUser() + * Setting this to false allows to not trigger on maxclones for users + * that may belong to another class after DNS-lookup is complete. + * It does, however, make the server spend more time on users we may potentially not want. + */ + bool CCOnConnect; + /** The soft limit value assigned to the irc server. * The IRC server will not allow more than this * number of local users. diff --git a/include/users.h b/include/users.h index 73ecba0ab..28bf8b05b 100644 --- a/include/users.h +++ b/include/users.h @@ -750,7 +750,7 @@ class CoreExport LocalUser : public User, public InviteBase /** Call this method to find the matching \<connect> for a user, and to check them against it. */ - void CheckClass(); + void CheckClass(bool clone_count = true); /** Server address and port that this user is connected to. */ |