diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-02 19:55:07 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-04 02:06:50 +0200 |
commit | 2ac7d154d9dadbc3d836434b786aa0e8c1660381 (patch) | |
tree | b3d1a794fba297ca32731bcff4065e4a5cc7b99f /src/modules | |
parent | 6db924458501457768d7ddafd5de8a69839f6399 (diff) |
Reduce User* -> Membership* lookups on part and kick
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_permchannels.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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; } } |