summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra')
-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
4 files changed, 22 insertions, 0 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")