]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hideoper.cpp
Remove/Add cmode h according to <option:allowhalfop>. Fixes bug #715 reported by...
[user/henk/code/inspircd.git] / src / modules / m_hideoper.cpp
index 7a2448afc6caa70df3a70a4c62422f7980a3c92b..425fa90f7f8f1c2d8d3022f8ff1a4fd1b4a52a07 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -84,7 +84,7 @@ class ModuleHideOper : public Module
                if (!dest->IsModeSet('H'))
                        return 0;
 
-               if (user->HasPrivPermission("users/auspex"))
+               if (!user->HasPrivPermission("users/auspex"))
                        return 1;
 
                return 0;