diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-31 19:54:26 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-31 19:54:26 +0000 |
commit | 0fa6bf2a5175b348a5d0fb03ec6c5a9ae6e01315 (patch) | |
tree | 4aae43b574c0bd6b14d2226d3f209bb7ad5042e5 | |
parent | 7fdd55570ea6269c096e6a3c8eae30c1a1587533 (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
-rw-r--r-- | src/modules/m_permchannels.cpp | 6 |
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 ¶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')) |