diff options
author | Sadie Powell <sadie@witchery.services> | 2020-12-20 03:04:21 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-12-20 03:05:29 +0000 |
commit | 6cfabb0064cab52bbbab59974e53dc0fa1954da7 (patch) | |
tree | aa755e92103730ba6428332b4094578cde91cc67 /include/numericbuilder.h | |
parent | 029ff235e184acc8194e76ef535e437cb6c9f614 (diff) |
Hide the server name/desc better when <options:hideserver> is set.
Diffstat (limited to 'include/numericbuilder.h')
-rw-r--r-- | include/numericbuilder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/numericbuilder.h b/include/numericbuilder.h index 9feceb7cb..a077c666d 100644 --- a/include/numericbuilder.h +++ b/include/numericbuilder.h @@ -86,7 +86,7 @@ class Numeric::GenericBuilder GenericBuilder(Sink s, unsigned int num, bool addparam = true, size_t additionalsize = 0) : sink(s) , numeric(num) - , max(ServerInstance->Config->Limits.MaxLine - ServerInstance->Config->ServerName.size() - additionalsize - 10) + , max(ServerInstance->Config->Limits.MaxLine - ServerInstance->Config->GetServerName().size() - additionalsize - 10) { if (addparam) numeric.push(std::string()); @@ -156,7 +156,7 @@ class Numeric::GenericParamBuilder : sink(s) , numeric(num) , currlen(0) - , max(ServerInstance->Config->Limits.MaxLine - ServerInstance->Config->ServerName.size() - additionalsize - 10) + , max(ServerInstance->Config->Limits.MaxLine - ServerInstance->Config->GetServerName().size() - additionalsize - 10) { } |