summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-24 00:45:03 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-24 00:45:03 +0000
commitfd3898589e42f62c008bc958ba74adff5781a551 (patch)
tree9a1a20bcdb44012b7934bf588b9a99de6913616e /src
parentf8254d68b51b4dec7d180ca5935d8c04cdd92a66 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_permchannels.cpp3
1 files changed, 3 insertions, 0 deletions
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 &parameter, 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)
{