]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_conn_waitpong.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_conn_waitpong.cpp
index 83958ee2dae6d0c15cd6899d84dade68a0b5e6ac..804026adbae8c4de193747be55b07d70c972d02f 100644 (file)
@@ -21,7 +21,7 @@ char* RandString(unsigned int length)
        
        out[length] = '\0';
        
-       delete tmp;
+       DELETE(tmp);
        
        return (char*)out;
 }
@@ -42,7 +42,7 @@ class ModuleWaitPong : public Module
                OnRehash("");
        }
        
-       virtual void OnRehash(std::string param)
+       virtual void OnRehash(const std::string &param)
        {
                Conf = new ConfigReader;
                
@@ -56,7 +56,7 @@ class ModuleWaitPong : public Module
                if(Conf->GetError() == CONF_VALUE_NOT_FOUND)
                        killonbadreply = true;
                                
-               delete Conf;
+               DELETE(Conf);
        }
 
        void Implements(char* List)
@@ -76,7 +76,7 @@ class ModuleWaitPong : public Module
                user->Extend("waitpong_pingstr", pingrpl);
        }
        
-       virtual int OnPreCommand(std::string command, char** parameters, int pcnt,      userrec* user,  bool validated)
+       virtual int OnPreCommand(const std::string &command, char** parameters, int pcnt, userrec* user, bool validated)
        {
                if(command == "PONG")
                {
@@ -86,7 +86,7 @@ class ModuleWaitPong : public Module
                        {
                                if(strcmp(pingrpl, parameters[0]) == 0)
                                {
-                                       delete pingrpl;
+                                       DELETE(pingrpl);
                                        user->Shrink("waitpong_pingstr");
                                        return 1;
                                }
@@ -113,7 +113,7 @@ class ModuleWaitPong : public Module
 
                if(pingrpl)
                {
-                       delete pingrpl;
+                       DELETE(pingrpl);
                        user->Shrink("waitpong_pingstr");
                }
        }
@@ -127,7 +127,7 @@ class ModuleWaitPong : public Module
                        
                        if(pingrpl)
                        {
-                               delete pingrpl;
+                               DELETE(pingrpl);
                                user->Shrink("waitpong_pingstr");
                        } 
                }