aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-11-27 12:27:48 +0000
committerGravatar Sadie Powell2020-11-27 12:27:48 +0000
commit7187fc224b7fa3762a6b7cc42ddda170e35d0f8e (patch)
tree31ced81e38e5069bd03cdf7adf073068d96dd1d0 /src/modules/m_ident.cpp
parentCleanup CAPAB MODULES/MODLIST now we don't need 1202 compatibility. (diff)
Rename IdentMax to MaxUser for consistency with the other limits.
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp6
1 files changed, 3 insertions, 3 deletions
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);