aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_channames.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-08-24 04:49:49 +0100
committerGravatar Sadie Powell2022-08-24 04:52:45 +0100
commit87fe3cae8aa28ceacc7d20afa1d535630d03bc02 (patch)
treed98fee098ff3f309b34206be37626d5cdb866305 /src/modules/m_channames.cpp
parentKill some unnecessary misspell-fixer ignore entries. (diff)
downloadinspircd++-87fe3cae8aa28ceacc7d20afa1d535630d03bc02.tar.gz
inspircd++-87fe3cae8aa28ceacc7d20afa1d535630d03bc02.tar.bz2
inspircd++-87fe3cae8aa28ceacc7d20afa1d535630d03bc02.zip
Replace GetUserCounter() with GetUsers().size().
This method is legacy from when there was a manual user counter and isn't much of a length saving over the unsugared version.
Diffstat (limited to 'src/modules/m_channames.cpp')
-rw-r--r--src/modules/m_channames.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp
index 7e88ee38a..b12ce085e 100644
--- a/src/modules/m_channames.cpp
+++ b/src/modules/m_channames.cpp
@@ -75,7 +75,7 @@ public:
if (ServerInstance->Channels.IsChannel(c->name))
continue; // The name of this channel is still valid
- if (c->IsModeSet(permchannelmode) && c->GetUserCounter())
+ if (c->IsModeSet(permchannelmode) && !c->GetUsers().empty())
{
removepermchan.clear();
removepermchan.push_remove(*permchannelmode);