diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 18:51:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 18:51:03 +0000 |
commit | 47c39f64a962d1875092b4ea31b16d93a1662734 (patch) | |
tree | 51c2f11a89acf3a3faefe22ab00d8edb7eda1462 /src | |
parent | 8cecef0f0b654b38758e22d43dc221769e4eb7b2 (diff) |
More conversions to 'Implements'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2661 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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); |