diff options
-rw-r--r-- | src/modules/m_permchannels.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 3b3df4d26..fc5bb8922 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -25,6 +25,9 @@ class PermChannel : public ModeHandler ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool sm) { + if (!source->HasPrivPermission("channels/set-permanent")) + return MODEACTION_DENY; + if (adding) { if (!channel->IsModeSet('P')) |