diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_knock.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_nicklock.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_noctcp.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_noinvite.cpp | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index 7948dc0db..8b9fd5ed5 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -78,6 +78,11 @@ class ModuleKnock : public Module Srv->AddCommand(mycommand); } + void Implements(char* List) + { + List[I_On005Numeric] = List[I_OnExtendedMode] = 1; + } + virtual void On005Numeric(std::string &output) { std::stringstream line(output); diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index 37e9d49bd..750b431cf 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -118,6 +118,11 @@ class ModuleNickLock : public Module return Version(1,0,0,1,VF_VENDOR); } + void Implements(char* List) + { + List[I_OnUserPreNick] = List[I_OnUserQuit] = 1; + } + virtual int OnUserPreNick(userrec* user, std::string newnick) { if (user->GetExt("nick_locked")) diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp index 2dd249559..131b5dc3c 100644 --- a/src/modules/m_noctcp.cpp +++ b/src/modules/m_noctcp.cpp @@ -37,6 +37,11 @@ class ModuleNoCTCP : public Module Srv->AddExtendedMode('C',MT_CHANNEL,false,0,0); } + void Implements(char* List) + { + List[I_OnExtendedMode] = List[I_On005Numeric] = List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1; + } + virtual void On005Numeric(std::string &output) { std::stringstream line(output); diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp index 476dbea1e..42de38b54 100644 --- a/src/modules/m_noinvite.cpp +++ b/src/modules/m_noinvite.cpp @@ -37,6 +37,11 @@ class ModuleNoInvite : public Module Srv->AddExtendedMode('V',MT_CHANNEL,false,0,0); } + void Implements(char* List) + { + List[I_On005Numeric] = List[I_OnUserPreInvite] = List[I_OnExtendedMode] = 1; + } + virtual void On005Numeric(std::string &output) { std::stringstream line(output); |