summaryrefslogtreecommitdiff
path: root/src/modules/m_nokicks.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-11-12 20:53:24 +0000
committerPeter Powell <petpow@saberuk.com>2017-11-13 16:24:42 +0000
commit0fd2d50fcf1bcff107d6d185aad5d8e9245d4141 (patch)
treeac3552562673f593f1b94e0f13421213faaae7bb /src/modules/m_nokicks.cpp
parent4e81454a4a6a4b67d1a5c76576a46b8e02d9044e (diff)
Only subclass Simple{Channel,User}ModeHandler when necessary.
Diffstat (limited to 'src/modules/m_nokicks.cpp')
-rw-r--r--src/modules/m_nokicks.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/m_nokicks.cpp b/src/modules/m_nokicks.cpp
index fb3455567..3155dcb6c 100644
--- a/src/modules/m_nokicks.cpp
+++ b/src/modules/m_nokicks.cpp
@@ -22,19 +22,13 @@
#include "inspircd.h"
-class NoKicks : public SimpleChannelModeHandler
-{
- public:
- NoKicks(Module* Creator) : SimpleChannelModeHandler(Creator, "nokick", 'Q') { }
-};
-
class ModuleNoKicks : public Module
{
- NoKicks nk;
+ SimpleChannelModeHandler nk;
public:
ModuleNoKicks()
- : nk(this)
+ : nk(this, "nokick", 'Q')
{
}