From 7187fc224b7fa3762a6b7cc42ddda170e35d0f8e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 27 Nov 2020 12:27:48 +0000 Subject: Rename IdentMax to MaxUser for consistency with the other limits. --- src/modules/m_ident.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 54f29ad98..1bb4a378b 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -238,7 +238,7 @@ class IdentRequestSocket : public EventHandler /* Truncate the ident at any characters we don't like, skip leading spaces */ for (std::string::const_iterator i = buf.begin()+lastcolon+1; i != buf.end(); ++i) { - if (result.size() == ServerInstance->Config->Limits.IdentMax) + if (result.size() == ServerInstance->Config->Limits.MaxUser) /* Ident is getting too long */ break; @@ -290,8 +290,8 @@ class ModuleIdent : public Module newident.insert(newident.begin(), '~'); // If the username is too long then truncate it. - if (newident.length() > ServerInstance->Config->Limits.IdentMax) - newident.erase(ServerInstance->Config->Limits.IdentMax); + if (newident.length() > ServerInstance->Config->Limits.MaxUser) + newident.erase(ServerInstance->Config->Limits.MaxUser); // Apply the new username. user->ChangeIdent(newident); -- cgit v1.3.1-10-gc9f91