summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 18:19:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 18:19:34 +0000
commit9861679f40d2a4f03e524998039c00d2bc838636 (patch)
tree93e42d2c1143c78353d4de5ae6add8ef1d0b9e08 /src/modules
parent4f1ef4e881ba4811fbd771aca44c395f0ab67ece (diff)
Converted to new implements system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2657 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_chanfilter.cpp5
-rw-r--r--src/modules/m_chanprotect.cpp5
-rw-r--r--src/modules/m_chghost.cpp4
-rw-r--r--src/modules/m_cloaking.cpp5
-rw-r--r--src/modules/m_conn_lusers.cpp5
5 files changed, 24 insertions, 0 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index 112bcb5c4..e8baf9ca8 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -46,6 +46,11 @@ class ModuleChanFilter : public Module
if (MaxEntries == 0)
MaxEntries = 32;
}
+
+ void Implements(char* List)
+ {
+ List[I_On005Numeric] = List[I_OnUserPart] = List[I_OnRehash] = List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnExtendedMode] = List[I_OnSendList] = List[I_OnSyncChannel] = 1;
+ }
virtual void On005Numeric(std::string &output)
{
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 25ff6b12a..a26535108 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -53,6 +53,11 @@ class ModuleChanProtect : public Module
// read our config options (main config file)
FirstInGetsFounder = Conf->ReadFlag("options","noservices",0);
}
+
+ void Implements(char* List)
+ {
+ List[I_On005Numeric] = List[I_OnUserKick] = List[I_OnUserPart] = List[I_OnRehash] = List[I_OnUserJoin] = List[I_OnAccessCheck] = List[I_OnExtendedMode] = List[I_OnSendList] = List[I_OnSyncChannel] = 1;
+ }
virtual void On005Numeric(std::string &output)
{
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp
index be8154013..42b1378e0 100644
--- a/src/modules/m_chghost.cpp
+++ b/src/modules/m_chghost.cpp
@@ -73,6 +73,10 @@ class ModuleChgHost : public Module
mycommand = new cmd_chghost();
Srv->AddCommand(mycommand);
}
+
+ void Implements(char* List)
+ {
+ }
virtual ~ModuleChgHost()
{
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 20d60ebef..17a8ddefe 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -303,6 +303,11 @@ class ModuleCloaking : public Module
// listed in /MODULES
return Version(1,0,0,1,VF_STATIC|VF_VENDOR);
}
+
+ void Implements(char* List)
+ {
+ List[I_OnExtendedMode] = List[I_OnUserConnect] = 1;
+ }
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
diff --git a/src/modules/m_conn_lusers.cpp b/src/modules/m_conn_lusers.cpp
index 245bd3c38..b4bb0ce6d 100644
--- a/src/modules/m_conn_lusers.cpp
+++ b/src/modules/m_conn_lusers.cpp
@@ -46,6 +46,11 @@ class ModuleConnLUSERS : public Module
{
return Version(1,0,0,1,VF_VENDOR);
}
+
+ void Implements(char* List)
+ {
+ List[I_OnUserConnect] = 1;
+ }
virtual void OnUserConnect(userrec* user)
{