diff options
| author | 2017-07-24 14:38:56 +0100 | |
|---|---|---|
| committer | 2017-07-24 14:44:11 +0100 | |
| commit | d2b5c7d1fcda74a72c93937cc58b5b7ff80e2a0a (patch) | |
| tree | ce6fa919741a92156fe5ce5787452dc7c05b7143 /src | |
| parent | Merge pull request #1232 from Adam-/master+kill (diff) | |
Add DEFAULT_LIST_SIZE for the default list mode size.
Diffstat (limited to 'src')
| -rw-r--r-- | src/listmode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp index cd034688c..b416d4a69 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -77,7 +77,7 @@ void ListModeBase::DoRehash() // Add the default entry. This is inserted last so if the user specifies a // wildcard record in the config it will take precedence over this entry. - chanlimits.push_back(ListLimit("*", 64)); + chanlimits.push_back(ListLimit("*", DEFAULT_LIST_SIZE)); // Most of the time our settings are unchanged, so we can avoid iterating the chanlist if (oldlimits == chanlimits) @@ -102,7 +102,7 @@ unsigned int ListModeBase::FindLimit(const std::string& channame) return it->limit; } } - return 64; + return DEFAULT_LIST_SIZE; } unsigned int ListModeBase::GetLimitInternal(const std::string& channame, ChanData* cd) |
