From 83497c73540f7d5b306e95e3bca97687cd9d0cee Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 Jul 2008 21:41:29 +0000 Subject: [PATCH] Allow opers to view modelists regardless of git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9995 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 11 +++++++---- 1 file 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& 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 -- 2.39.2