From 2ac7d154d9dadbc3d836434b786aa0e8c1660381 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 2 Jun 2013 19:55:07 +0200 Subject: Reduce User* -> Membership* lookups on part and kick --- src/modules/m_permchannels.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 8aa888485..41477ba35 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -143,10 +143,7 @@ class PermChannel : public ModeHandler if (channel->IsModeSet('P')) { channel->SetMode(this,false); - if (channel->GetUserCounter() == 0) - { - channel->DelUser(ServerInstance->FakeClient); - } + channel->CheckDestroy(); return MODEACTION_ALLOW; } } -- cgit v1.2.3