diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-24 00:45:03 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-24 00:45:03 +0000 |
commit | fd3898589e42f62c008bc958ba74adff5781a551 (patch) | |
tree | 9a1a20bcdb44012b7934bf588b9a99de6913616e | |
parent | f8254d68b51b4dec7d180ca5935d8c04cdd92a66 (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
-rw-r--r-- | src/modules/m_permchannels.cpp | 3 |
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 ¶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) { |