From fd3898589e42f62c008bc958ba74adff5781a551 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 24 Dec 2008 00:45:03 +0000 Subject: Return ERR_NOPRIVILEGES for +P without channels/set-permanent priv. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10908 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 fc5bb8922..7cd0b4914 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -26,7 +26,10 @@ 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")) + { + source->WriteNumeric(ERR_NOPRIVILEGES, "%s :Permission Denied - You do not have the required operator privileges", source->nick.c_str()); return MODEACTION_DENY; + } if (adding) { -- cgit v1.2.3