summaryrefslogtreecommitdiff
path: root/src/modules/m_noctcp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_noctcp.cpp')
-rw-r--r--src/modules/m_noctcp.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp
index 4fc844b74..e9733cf54 100644
--- a/src/modules/m_noctcp.cpp
+++ b/src/modules/m_noctcp.cpp
@@ -22,21 +22,15 @@
#include "inspircd.h"
#include "modules/exemption.h"
-class NoCTCP : public SimpleChannelModeHandler
-{
- public:
- NoCTCP(Module* Creator) : SimpleChannelModeHandler(Creator, "noctcp", 'C') { }
-};
-
class ModuleNoCTCP : public Module
{
CheckExemption::EventProvider exemptionprov;
- NoCTCP nc;
+ SimpleChannelModeHandler nc;
public:
ModuleNoCTCP()
: exemptionprov(this)
- , nc(this)
+ , nc(this, "noctcp", 'C')
{
}