diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 21:41:29 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 21:41:29 +0000 |
commit | 83497c73540f7d5b306e95e3bca97687cd9d0cee (patch) | |
tree | 5aaabbb91a6eb9208c3d86332c31d07f2a5c22e9 /src/mode.cpp | |
parent | 6297389beccbe67790e58ab2c4b1570d1f87bfae (diff) |
Allow opers to view modelists regardless of <security:hidemodelists>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9995 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 9f92de314..3b2a7c45a 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -412,11 +412,14 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User *user, continue; } - if (ServerInstance->Config->HideModeLists[mletter] && (targetchannel->GetStatus(user) < STATUS_HOP)) + if (!IS_OPER(user)) { - user->WriteNumeric(482, "%s %s :Only half-operators and above may view the +%c list",user->nick.c_str(), targetchannel->name.c_str(), *mode++); - mh->DisplayEmptyList(user, targetchannel); - continue; + if (ServerInstance->Config->HideModeLists[mletter] && (targetchannel->GetStatus(user) < STATUS_HOP)) + { + user->WriteNumeric(482, "%s %s :Only half-operators and above may view the +%c list",user->nick.c_str(), targetchannel->name.c_str(), *mode++); + mh->DisplayEmptyList(user, targetchannel); + continue; + } } /** See below for a description of what craq this is :D |