diff options
| author | 2017-11-12 20:53:24 +0000 | |
|---|---|---|
| committer | 2017-11-13 16:24:42 +0000 | |
| commit | 0fd2d50fcf1bcff107d6d185aad5d8e9245d4141 (patch) | |
| tree | ac3552562673f593f1b94e0f13421213faaae7bb /src/modules/m_callerid.cpp | |
| parent | Add the m_ircv3_sts module which implements the IRCv3 STS spec. (diff) | |
Only subclass Simple{Channel,User}ModeHandler when necessary.
Diffstat (limited to 'src/modules/m_callerid.cpp')
| -rw-r--r-- | src/modules/m_callerid.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index d191a9fc7..7b56ffce4 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -147,12 +147,6 @@ struct CallerIDExtInfo : public ExtensionItem } }; -class User_g : public SimpleUserModeHandler -{ -public: - User_g(Module* Creator) : SimpleUserModeHandler(Creator, "callerid", 'g') { } -}; - class CommandAccept : public Command { /** Pair: first is the target, second is true to add, false to remove @@ -333,7 +327,7 @@ public: class ModuleCallerID : public Module { CommandAccept cmd; - User_g myumode; + SimpleUserModeHandler myumode; // Configuration variables: bool operoverride; // Operators can override callerid. @@ -364,7 +358,9 @@ class ModuleCallerID : public Module } public: - ModuleCallerID() : cmd(this), myumode(this) + ModuleCallerID() + : cmd(this) + , myumode(this, "callerid", 'g') { } |
