summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-31 19:54:26 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-31 19:54:26 +0000
commit0fa6bf2a5175b348a5d0fb03ec6c5a9ae6e01315 (patch)
tree4aae43b574c0bd6b14d2226d3f209bb7ad5042e5 /src/modules
parent7fdd55570ea6269c096e6a3c8eae30c1a1587533 (diff)
Remove duplicated permisison check for setting mode +P (it is already restricted in allowed chanmodes)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12338 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_permchannels.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index e3d18cc33..7c7a71f47 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -114,12 +114,6 @@ class PermChannel : public ModeHandler
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
{
- if (!source->HasPrivPermission("channels/set-permanent"))
- {
- source->WriteNumeric(ERR_NOPRIVILEGES, "%s :Permission Denied - You do not have the required operator privileges", source->nick.c_str());
- return MODEACTION_DENY;
- }
-
if (adding)
{
if (!channel->IsModeSet('P'))