From dbca69da29633abd79ff8ce546d5e2b2b4c43d04 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 11 Apr 2017 23:13:26 +0100 Subject: Automatically apply +P to all permanent channels. --- src/modules/m_permchannels.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 9e77bd60e..d514e62a5 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -244,6 +244,10 @@ public: mode->OnModeChange(ServerInstance->FakeClient, ServerInstance->FakeClient, c, par, true); } } + + // We always apply the permchannels mode to permanent channels. + par.clear(); + p.OnModeChange(ServerInstance->FakeClient, ServerInstance->FakeClient, c, par, true); } } } -- cgit v1.2.3