From 0fa6bf2a5175b348a5d0fb03ec6c5a9ae6e01315 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 31 Jan 2010 19:54:26 +0000 Subject: 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 --- src/modules/m_permchannels.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/modules/m_permchannels.cpp') 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 ¶meter, 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')) -- cgit v1.2.3