diff options
Diffstat (limited to 'src/modules/m_allowinvite.cpp')
-rw-r--r-- | src/modules/m_allowinvite.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp index 6a4db1822..41edbc855 100644 --- a/src/modules/m_allowinvite.cpp +++ b/src/modules/m_allowinvite.cpp @@ -19,18 +19,13 @@ #include "inspircd.h" -class AllowInvite : public SimpleChannelModeHandler -{ - public: - AllowInvite(Module* Creator) : SimpleChannelModeHandler(Creator, "allowinvite", 'A') { } -}; - class ModuleAllowInvite : public Module { - AllowInvite ni; + SimpleChannelModeHandler ni; public: - ModuleAllowInvite() : ni(this) + ModuleAllowInvite() + : ni(this, "allowinvite", 'A') { } |