summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2017-07-09 21:15:49 +0200
committerGitHub <noreply@github.com>2017-07-09 21:15:49 +0200
commit01527a4652b71fc8af7d047ad6fdb8dfc37636a7 (patch)
tree3e9176266cab3a0b45ae81e6e5ab315713902dcf /src/modules
parent5c1ee05dd5b08b4cb34f4d11c05e468510a856de (diff)
parentdbca69da29633abd79ff8ce546d5e2b2b4c43d04 (diff)
Merge pull request #1320 from SaberUK/master+autoperm
Automatically apply +P to all permanent channels.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_permchannels.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}
}
}