]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanprotect.cpp
Fix all typos (not as fun as 'kill all humans' but meh, beggers cant be choosers)
[user/henk/code/inspircd.git] / src / modules / m_chanprotect.cpp
index b7d67d9ae26edaa38a9226d8eb6fb6b3f90b3945..0839a48e41e42f718d2c5770ff14e818b33c296b 100644 (file)
@@ -59,10 +59,10 @@ class ModuleChanProtect : public Module
                List[I_On005Numeric] = List[I_OnUserKick] = List[I_OnUserPart] = List[I_OnRehash] = List[I_OnUserJoin] = List[I_OnAccessCheck] = List[I_OnExtendedMode] = List[I_OnSendList] = List[I_OnSyncChannel] = 1;
        }
        
-        virtual void On005Numeric(std::string &output)
-        {
+       virtual void On005Numeric(std::string &output)
+       {
                InsertMode(output,"qa",1);
-        }
+       }
 
        virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason)
        {
@@ -81,7 +81,7 @@ class ModuleChanProtect : public Module
        virtual void OnRehash(const std::string &parameter)
        {
                // on a rehash we delete our classes for good measure and create them again.
-               delete Conf;
+               DELETE(Conf);
                Conf = new ConfigReader;
                // re-read our config options on a rehash
                FirstInGetsFounder = Conf->ReadFlag("options","noservices",0);
@@ -301,24 +301,24 @@ class ModuleChanProtect : public Module
                        }
                        WriteServ(user->fd,"387 %s %s :End of channel founder list",user->nick, channel->name);
                }
-                if (mode == 'a')
-                {
-                        chanuserlist cl = Srv->GetUsers(channel);
-                        for (unsigned int i = 0; i < cl.size(); i++)
-                        {
-                                if (cl[i]->GetExt("cm_protect_"+std::string(channel->name)))
-                                {
-                                        WriteServ(user->fd,"388 %s %s %s",user->nick, channel->name,cl[i]->nick);
-                                }
-                        }
+               if (mode == 'a')
+               {
+                       chanuserlist cl = Srv->GetUsers(channel);
+                       for (unsigned int i = 0; i < cl.size(); i++)
+                       {
+                               if (cl[i]->GetExt("cm_protect_"+std::string(channel->name)))
+                               {
+                                       WriteServ(user->fd,"388 %s %s %s",user->nick, channel->name,cl[i]->nick);
+                               }
+                       }
                        WriteServ(user->fd,"389 %s %s :End of channel protected user list",user->nick, channel->name);
-                }
+               }
 
        }
        
        virtual ~ModuleChanProtect()
        {
-               delete Conf;
+               DELETE(Conf);
        }
        
        virtual Version GetVersion()