]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_restrictchans.cpp
Now with added ANGRY MONKEYS.
[user/henk/code/inspircd.git] / src / modules / m_restrictchans.cpp
index d4fbdfbb5382b5dcc3a95f163b687e0ac0bce37a..a901dfde6a4dd9c6816ea22c3b907ffa115ed175 100644 (file)
@@ -25,10 +25,9 @@ using namespace std;
 
 /* $ModDesc: Only opers may create new channels if this module is loaded */
 
-Server *Srv;
-        
 class ModuleRestrictChans : public Module
 {
+       Server* Srv;
 
        std::map<irc::string,int> allowchans;
 
@@ -43,7 +42,7 @@ class ModuleRestrictChans : public Module
                        irc::string channel = txt.c_str();
                        allowchans[channel] = 1;
                }
-               delete MyConf;
+               DELETE(MyConf);
        }
 
  public:
@@ -54,7 +53,7 @@ class ModuleRestrictChans : public Module
                ReadConfig();
        }
 
-       virtual void OnRehash(std::string parameter)
+       virtual void OnRehash(const std::string &parameter)
        {
                ReadConfig();
        }