]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_dccallow.cpp
Add sanity checks to the ssl modules so that theres no possibility of an out of range...
[user/henk/code/inspircd.git] / src / modules / m_dccallow.cpp
index bfec3c5e107e219f099832084fb2e479180e8ba7..fd9e329cd17ad6f235d9a65ef7ab316a5e85dd25 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 
 /* $ModDesc: Povides support for the /DCCALLOW command */
 
@@ -54,6 +51,7 @@ class cmd_dccallow : public command_t
        {
                this->source = "m_dccallow.so";
                syntax = "{[+|-]<nick> <time>|HELP|LIST}";
+               /* XXX we need to fix this so it can work with translation stuff (i.e. move +- into a seperate param */
        }
 
        CmdResult Handle(const char **parameters, int pcnt, userrec *user)
@@ -114,7 +112,7 @@ class cmd_dccallow : public command_t
                                        }
                                        else
                                        {
-                                               DELETE(dl);
+                                               delete  dl;
                                                user->Shrink("dccallow_list");
                                
                                                // remove from userlist
@@ -278,7 +276,7 @@ class ModuleDCCAllow : public Module
                user->GetExt("dccallow_list", dl);
                if (dl)
                {
-                       DELETE(dl);
+                       delete dl;
                        user->Shrink("dccallow_list");
                        RemoveFromUserlist(user);
                }
@@ -482,7 +480,7 @@ class ModuleDCCAllow : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1, 1, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
        }
 };