From 5524a81896bf6f3e98c167db066368834c741062 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 20 Dec 2008 13:09:34 +0000 Subject: 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 --- src/modules/m_permchannels.cpp | 3 +++ 1 file changed, 3 insertions(+) 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')) -- cgit v1.2.3