]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidemode.cpp
Add a way to disable using environment variables in included files.
[user/henk/code/inspircd.git] / src / modules / m_hidemode.cpp
index d5ac57115757bcccdca67a31abe6843495dbf480..aae760262e6526e0b2f204d074e5f1e803d663c9 100644 (file)
@@ -1,7 +1,10 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
+ *   Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
+ *   Copyright (C) 2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2018 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -130,6 +133,9 @@ class ModeHook : public ClientProtocol::EventHook
                if (!chan)
                        return MOD_RES_PASSTHRU;
 
+               if (user->HasPrivPermission("channels/auspex"))
+                       return MOD_RES_PASSTHRU;
+
                Membership* const memb = chan->GetUser(user);
                if (!memb)
                        return MOD_RES_PASSTHRU;