aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_channames.cpp
diff options
context:
space:
mode:
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);