From 47c39f64a962d1875092b4ea31b16d93a1662734 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 26 Dec 2005 18:51:03 +0000 Subject: More conversions to 'Implements' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2661 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_knock.cpp | 5 +++++ src/modules/m_nicklock.cpp | 5 +++++ src/modules/m_noctcp.cpp | 5 +++++ src/modules/m_noinvite.cpp | 5 +++++ 4 files changed, 20 insertions(+) (limited to 'src') 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); -- cgit v1.2.3