]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_shun.cpp
Fix two modules set VF_COMMON incorrectly, closes bug #587
[user/henk/code/inspircd.git] / src / modules / m_shun.cpp
index 0cf62dd35126571127753248aa1e2c2ba7db57d0..bdf990313098ac615d1f45a657d54a8c56c0c68d 100644 (file)
@@ -1,11 +1,4 @@
-#include <algorithm>
-#include <vector>
-#include <string>
-#include <sstream>
 #include "inspircd.h"
-#include "modules.h"
-#include "hashcomp.h"
-#include "configreader.h"
 #include "xline.h"
 
 /* $ModDesc: Provides the /shun command, which stops a user executing all commands except PING and PONG. */
@@ -168,6 +161,7 @@ class ModuleShun : public Module
 
        virtual ~ModuleShun()
        {
+               ServerInstance->XLines->DelAll("SHUN");
                ServerInstance->XLines->UnregisterFactory(f);
        }