summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 21:14:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 21:14:49 +0000
commitb9e643261230d3b71517b0bc631c3b306e7246fa (patch)
treeef6912b4891f933b5a061a3a88633b394d0ab774 /src/modules
parent8d4551953561efc7baae31ed2529dd2371908b6c (diff)
Converted to 'Implements' system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2666 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_remove.cpp5
-rw-r--r--src/modules/m_restrictchans.cpp5
-rw-r--r--src/modules/m_restrictmsg.cpp5
-rw-r--r--src/modules/m_services.cpp10
-rw-r--r--src/modules/m_showwhois.cpp5
-rw-r--r--src/modules/m_silence.cpp5
-rw-r--r--src/modules/m_spanningtree.cpp11
7 files changed, 41 insertions, 5 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp
index 7962d6a1d..5a83670e9 100644
--- a/src/modules/m_remove.cpp
+++ b/src/modules/m_remove.cpp
@@ -130,6 +130,11 @@ class ModuleRemove : public Module
Srv->AddCommand(mycommand);
}
+ void Implements(char* List)
+ {
+ List[I_On005Numeric] = 1;
+ }
+
virtual void On005Numeric(std::string &output)
{
output = output + std::string(" REMOVE");
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp
index 77ab094b6..794f2db82 100644
--- a/src/modules/m_restrictchans.cpp
+++ b/src/modules/m_restrictchans.cpp
@@ -34,6 +34,11 @@ class ModuleRestrictChans : public Module
{
Srv = Me;
}
+
+ void Implements(char* List)
+ {
+ List[I_OnUserPreJoin] = 1;
+ }
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp
index 5043b3f8d..4bbca4bdc 100644
--- a/src/modules/m_restrictmsg.cpp
+++ b/src/modules/m_restrictmsg.cpp
@@ -38,6 +38,11 @@ class ModuleRestrictMsg : public Module
Srv = Me;
}
+ void Implements(char* List)
+ {
+ List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1;
+ }
+
virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text)
{
if (target_type == TYPE_USER)
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index 22d3242b7..edf258fbc 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -60,6 +60,11 @@ class ModuleServices : public Module
if (temp2.length())
output = temp2.substr(0,temp2.length()-1);
}
+
+ void Implements(char* List)
+ {
+ List[I_OnUserPreMessage] = List[I_OnExtendedMode] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[I_OnUserPreJoin] = 1;
+ }
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
@@ -212,11 +217,6 @@ class ModuleServices : public Module
{
return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
}
-
- virtual void OnUserConnect(userrec* user)
- {
- }
-
};
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp
index c16135679..6086a0828 100644
--- a/src/modules/m_showwhois.cpp
+++ b/src/modules/m_showwhois.cpp
@@ -25,6 +25,11 @@ class ModuleShowwhois : public Module
{
}
+ void Implements(char* List)
+ {
+ List[I_OnWhois] = List[I_OnExtendedMode] = 1;
+ }
+
virtual Version GetVersion()
{
return Version(1,0,0,3,VF_STATIC);
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 86f12633d..31baf899f 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -141,6 +141,11 @@ class ModuleSilence : public Module
Srv->AddCommand(mycommand);
}
+ void Implements(char* List)
+ {
+ List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[OnUserPreMessage] = 1;
+ }
+
virtual void OnUserQuit(userrec* user, std::string reason)
{
// when the user quits tidy up any silence list they might have just to keep things tidy
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 4487e79a3..08058e684 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -3117,6 +3117,17 @@ class ModuleSpanningTree : public Module
{
return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
}
+
+ void Implements(char* List)
+ {
+ List[I_OnPreCommand] = List[I_OnGetServerDescription] = List[I_OnUserInvite] = List[I_OnPostLocalTopicChange] = 1;
+ List[I_OnWallops] = List[I_OnUserNotice] = List[I_OnUserMessage] = List[I_OnBackgroundTimer] = 1;
+ List[I_OnUserJoin] = List[I_OnChangeHost] = List[I_OnChangeName] = List[I_OnUserPart] = List[I_OnUserConnect] = 1;
+ List[I_OnUserQuit] = List[I_OnUserPostNick] = List[I_OnUserKick] = List[I_OnRemoteKill] = List[I_OnRehash] = 1;
+ List[I_OnOper] = List[I_OnAddGLine] = List[I_OnAddZLine] = List[I_OnAddQLine] = List[I_OnAddELine] = 1;
+ List[I_OnDelGLine] = List[I_OnDelZLine] = List[I_OnDelQLine] = List[I_OnDelELine] = List[I_ProtoSendMode] = List[I_OnMode] = 1;
+ List[I_ProtoSendMetaData] = 1;
+ }
};