From da6d1d696a7e9c5b1e45c125e2c4f081d53043a9 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 6 Feb 2008 15:13:47 +0000 Subject: Add setting, based on patch contributed by Sm0ke0ut git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8841 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_auditorium.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 31533aaa1..9d8ff4b9a 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -47,6 +47,7 @@ class ModuleAuditorium : public Module private: AuditoriumMode* aum; bool ShowOps; + bool OperOverride; CUList nl; CUList except_list; public: @@ -83,6 +84,7 @@ class ModuleAuditorium : public Module { ConfigReader conf(ServerInstance); ShowOps = conf.ReadFlag("auditorium", "showops", 0); + OperOverride = conf.ReadFlag("auditorium", "operoverride", 0); } virtual Version GetVersion() @@ -94,6 +96,17 @@ class ModuleAuditorium : public Module { if (Ptr->IsModeSet('u')) { + if (OperOverride) + { + if (IS_OPER(user)) + { + /* + * If user is oper and operoverride is on, don't touch the list + */ + return 0; + } + } + if (ShowOps) { /* Leave the names list alone, theyre an op -- cgit v1.2.3