summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_permchannels.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index 3b3df4d26..207093e0e 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -27,6 +27,9 @@ class PermChannel : public ModeHandler
{
if (adding)
{
+ if (!source->HasPrivPermission("channels/set-permanent"))
+ return MODEACTION_DENY;
+
if (!channel->IsModeSet('P'))
{
channel->SetMode('P',true);