From: w00t Date: Sat, 12 Jul 2008 21:41:29 +0000 (+0000) Subject: Allow opers to view modelists regardless of X-Git-Tag: v2.0.23~2944 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=83497c73540f7d5b306e95e3bca97687cd9d0cee;p=user%2Fhenk%2Fcode%2Finspircd.git Allow opers to view modelists regardless of git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9995 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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& 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