diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 18:02:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 18:02:53 +0000 |
commit | 43fe72edad4c5dfd1a3a700bea17c8ee7a7c3d8e (patch) | |
tree | 8aab686c1d813be2ecfdc33e0e4c3252ce7d1b2a /src/modules | |
parent | bd59b1a9a283c09b318bd3a6cb93774d5961b794 (diff) |
New 'Implements' system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2655 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_alias.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_antibottler.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_blockcolor.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_botmode.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_cban.cpp | 5 |
5 files changed, 26 insertions, 0 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 57532fc6b..3c4cac9af 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -71,6 +71,11 @@ class ModuleAlias : public Module MyConf = new ConfigReader; ReadAliases(); } + + void Implements(char* List) + { + List[I_OnPreCommand] = List[I_OnRehash] = 1; + } virtual ~ModuleAlias() { diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index 8d588cf5c..5c0b6e593 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -32,6 +32,12 @@ class ModuleAntiBottler : public Module { Srv = Me; } + + void Implements(char* List) + { + List[I_OnServerRaw] = 1; + } + virtual ~ModuleAntiBottler() { diff --git a/src/modules/m_blockcolor.cpp b/src/modules/m_blockcolor.cpp index 1e7f21353..ef26e746b 100644 --- a/src/modules/m_blockcolor.cpp +++ b/src/modules/m_blockcolor.cpp @@ -37,6 +37,11 @@ class ModuleBlockColor : public Module Srv->AddExtendedMode('c',MT_CHANNEL,false,0,0); } + void Implements(char* List) + { + List[I_On005Numeric] = List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnExtendedMode] = 1; + } + virtual void On005Numeric(std::string &output) { // we don't really have a limit... diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index fe8fb9f91..909befee0 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -39,6 +39,11 @@ class ModuleBotMode : public Module return; } } + + void Implements(char* List) + { + List[I_OnWhois] = List[I_OnExtendedMode] = 1; + } virtual ~ModuleBotMode() { diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 7d80eb4ca..5fe2191a1 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -120,6 +120,11 @@ class ModuleCBan : public Module Srv->AddCommand(mycommand); } + void Implements(char* List) + { + List[I_OnUserPreJoin] = 1; + } + virtual int OnUserPreJoin(userrec *user, chanrec *chan, const char *cname) { /* check cbans in here, and apply as necessary. */ |