summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-20 13:09:34 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-20 13:09:34 +0000
commit5524a81896bf6f3e98c167db066368834c741062 (patch)
treec9919601afd227b7d0572af7ffa9382d5538c6ca /src
parentc681081852491531151e96b4df31f6547755a390 (diff)
Readd check for +P setting to channels/set-permanent priv, thanks Johannes13 - naughty Namegduf for patching this out :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10901 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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..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 &parameter, bool adding, bool sm)
{
+ if (!source->HasPrivPermission("channels/set-permanent"))
+ return MODEACTION_DENY;
+
if (adding)
{
if (!channel->IsModeSet('P'))