]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_deaf.cpp
Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)
[user/henk/code/inspircd.git] / src / modules / m_deaf.cpp
index f52702bca8592bcc7f55c6ad9320ab4276356775..6b90502859921f7c7b8c409e6b7be701b5406cba 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -67,11 +67,9 @@ class ModuleDeaf : public Module
 
        virtual void OnRehash(User* user)
        {
-               ConfigReader* conf = new ConfigReader;
-               deaf_bypasschars = conf->ReadValue("deaf", "bypasschars", 0);
-               deaf_bypasschars_uline = conf->ReadValue("deaf", "bypasscharsuline", 0);
-
-               delete conf;
+               ConfigReader conf;
+               deaf_bypasschars = conf.ReadValue("deaf", "bypasschars", 0);
+               deaf_bypasschars_uline = conf.ReadValue("deaf", "bypasscharsuline", 0);
        }
 
        virtual ModResult OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
@@ -157,7 +155,7 @@ class ModuleDeaf : public Module
 
        virtual Version GetVersion()
        {
-               return Version("Provides support for ircu style usermode +d (deaf to channel messages and channel notices)", VF_COMMON|VF_VENDOR);
+               return Version("Provides support for ircu style usermode +d (deaf to channel messages and channel notices)", VF_VENDOR);
        }
 
 };