summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/extra/m_sql.cpp5
-rw-r--r--src/modules/extra/m_sqlauth.cpp5
-rw-r--r--src/modules/extra/m_sqllog.cpp7
-rw-r--r--src/modules/extra/m_sqloper.cpp5
-rw-r--r--src/modules/m_redirect.cpp2
-rw-r--r--src/modules/m_silence.cpp2
-rw-r--r--src/modules/m_stripcolor.cpp5
-rw-r--r--src/modules/m_swhois.cpp10
-rw-r--r--src/modules/m_testcommand.cpp10
-rw-r--r--src/modules/m_timedbans.cpp5
-rw-r--r--src/modules/m_userip.cpp5
-rw-r--r--src/modules/m_watch.cpp5
12 files changed, 54 insertions, 12 deletions
diff --git a/src/modules/extra/m_sql.cpp b/src/modules/extra/m_sql.cpp
index 8b9f212a0..6b31ce871 100644
--- a/src/modules/extra/m_sql.cpp
+++ b/src/modules/extra/m_sql.cpp
@@ -286,6 +286,11 @@ class ModuleSQL : public Module
}
}
+ void Implements(char* List)
+ {
+ List[I_OnRehash] = List[I_OnRequest] = 1;
+ }
+
char* OnRequest(Request* request)
{
if (request)
diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp
index 1faf2c0d7..24cc5f5f1 100644
--- a/src/modules/extra/m_sqlauth.cpp
+++ b/src/modules/extra/m_sqlauth.cpp
@@ -79,6 +79,11 @@ class ModuleSQLAuth : public Module
ReadConfig();
}
+ void Implements(char* List)
+ {
+ List[I_OnRehash] = List[I_OnUserRegister] = 1;
+ }
+
virtual void OnRehash(std::string parameter)
{
ReadConfig();
diff --git a/src/modules/extra/m_sqllog.cpp b/src/modules/extra/m_sqllog.cpp
index badc67731..280a181b1 100644
--- a/src/modules/extra/m_sqllog.cpp
+++ b/src/modules/extra/m_sqllog.cpp
@@ -72,6 +72,13 @@ class ModuleSQLLog : public Module
ReadConfig();
}
+ void Implements(char* List)
+ {
+ List[I_OnRehash] = List[I_OnOper]] = List[I_OnGlobalOper] = List[I_OnKill] = 1;
+ List[I_OnPreCommand] = List[I_OnUserConnect] = List[I_OnGlobalConnect] = 1;
+ List[I_OnUserQuit] = List[I_OnLoadModule] = 1;
+ }
+
virtual void OnRehash(std::string parameter)
{
ReadConfig();
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp
index 369815f6d..0c70924d9 100644
--- a/src/modules/extra/m_sqloper.cpp
+++ b/src/modules/extra/m_sqloper.cpp
@@ -70,6 +70,11 @@ class ModuleSQLOper : public Module
ReadConfig();
}
+ void Implements(char* List)
+ {
+ List[I_OnRehash] = List[I_OnPreCommand] = 1;
+ }
+
virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user)
{
if (command == "OPER")
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp
index 7120a7a29..6250a107e 100644
--- a/src/modules/m_redirect.cpp
+++ b/src/modules/m_redirect.cpp
@@ -62,7 +62,7 @@ class ModuleRedirect : public Module
void Implements(char* List)
{
- List[I_On005Numeiric] = List[I_OnUserPreJoin] = List[I_OnExtendedMode] = 1;
+ List[I_On005Numeric] = List[I_OnUserPreJoin] = List[I_OnExtendedMode] = 1;
}
virtual void On005Numeric(std::string &output)
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 31baf899f..544285714 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -143,7 +143,7 @@ class ModuleSilence : public Module
void Implements(char* List)
{
- List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[OnUserPreMessage] = 1;
+ List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[I_OnUserPreMessage] = 1;
}
virtual void OnUserQuit(userrec* user, std::string reason)
diff --git a/src/modules/m_stripcolor.cpp b/src/modules/m_stripcolor.cpp
index 136f33d85..d28d60e00 100644
--- a/src/modules/m_stripcolor.cpp
+++ b/src/modules/m_stripcolor.cpp
@@ -39,6 +39,11 @@ class ModuleStripColor : public Module
Srv->AddExtendedMode('S',MT_CLIENT,false,0,0);
}
+ void Implements(char* List)
+ {
+ List[I_OnExtendedMode] = List[I_On005Numeric] = List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1;
+ }
+
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
// check if this is our mode character...
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index 040845139..42d2ba6dd 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -71,6 +71,11 @@ class ModuleSWhois : public Module
Srv->AddCommand(mycommand);
}
+ void Implements(char* List)
+ {
+ List[I_OnWhois] = List[I_OnSyncUserMetaData] = List[I_OnUserQuit] = List[I_OnCleanup] = 1;
+ }
+
// :kenny.chatspike.net 320 Brain Azhrarn :is getting paid to play games.
virtual void OnWhois(userrec* source, userrec* dest)
{
@@ -163,11 +168,6 @@ class ModuleSWhois : public Module
{
return Version(1,0,0,0,VF_VENDOR);
}
-
- virtual void OnUserConnect(userrec* user)
- {
- }
-
};
diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp
index 8fdaff94f..bbdc437e4 100644
--- a/src/modules/m_testcommand.cpp
+++ b/src/modules/m_testcommand.cpp
@@ -73,6 +73,11 @@ class ModuleTestCommand : public Module
// Add a mode +Z for channels with no parameters
Srv->AddExtendedMode('Z',MT_CHANNEL,false,1,0);
}
+
+ void Implements(char* List)
+ {
+ List[I_OnExtendedMode] = List[I_OnUserJoin] = 1;
+ }
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
@@ -119,11 +124,6 @@ class ModuleTestCommand : public Module
{
return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
}
-
- virtual void OnUserConnect(userrec* user)
- {
- }
-
};
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index fbaadbe17..804304236 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -122,6 +122,11 @@ class ModuleTimedBans : public Module
TimedBanList.clear();
}
+ void Implements(char* List)
+ {
+ List[I_OnDelBan] = List[I_OnBackgroundTimer] = 1;
+ }
+
virtual int OnDelBan(userrec* source, chanrec* chan, std::string banmask)
{
for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end(); i++)
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp
index 562f51c17..7c6cb752f 100644
--- a/src/modules/m_userip.cpp
+++ b/src/modules/m_userip.cpp
@@ -64,6 +64,11 @@ class ModuleUserIP : public Module
Srv->AddCommand(mycommand);
}
+ void Implements(char* List)
+ {
+ List[I_On005Numeric] = 1;
+ }
+
virtual void On005Numeric(std::string &output)
{
output = output + std::string(" USERIP");
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index 1a8d6a658..f35ae4278 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -199,6 +199,11 @@ class Modulewatch : public Module
Srv->AddCommand(mycommand);
}
+ void Implements(char* List)
+ {
+ List[I_OnUserQuit] = List[I_OnGlobalConnect] = List[I_OnUserPostNick] = List[I_On005Numeric] = 1;
+ }
+
virtual void OnUserQuit(userrec* user, std::string reason)
{
log(DEBUG,"*** WATCH: On global quit: user %s",user->nick);