From d0a7ed880df022ef7b41c36c74099cd2790c3462 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 23 Oct 2008 19:21:22 +0000 Subject: Add/document channels/set-permanent priv, and tie setting of +P to it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10692 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_permchannels.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') 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); -- cgit v1.2.3