]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_kicknorejoin.cpp
Made SANICK not collide the user (theres no need to in the new 1.1 now we have return...
[user/henk/code/inspircd.git] / src / modules / m_kicknorejoin.cpp
index d64c60d5608d182c48a216f8af5d9ff76907880a..fddcae288657d3aebb2abe7dcf5b5ef468b1331f 100644 (file)
@@ -119,8 +119,8 @@ public:
                                if (!dl->size())
                                {
                                        // Now it's empty..
-                                               DELETE(dl);
-                                               chan->Shrink("norejoinusers");
+                                       DELETE(dl);
+                                       chan->Shrink("norejoinusers");
                                }
                        }
                }
@@ -167,12 +167,13 @@ public:
 
        virtual ~ModuleKickNoRejoin()
        {
+               ServerInstance->Modes->DelMode(kr);
                DELETE(kr);
        }
        
        virtual Version GetVersion()
        {
-               return Version(1, 0, 0, 0, VF_STATIC | VF_VENDOR);
+               return Version(1, 0, 0, 0, VF_COMMON | VF_VENDOR);
        }
 };