summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 15:26:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 15:26:42 +0000
commit0739e7c099618eb1848f5a72ec4d896095033a76 (patch)
treed4d04a29cfacd912ed270e76c71fd190951c26e4
parent2ff37cc2736f3b9baca887305304e0c8359e5e7b (diff)
Added a parameter to OnRehash for the rehash parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2058 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules.cpp2
-rw-r--r--src/modules/extra/m_filter_pcre.cpp2
-rw-r--r--src/modules/extra/m_sql.cpp2
-rw-r--r--src/modules/extra/m_sqlauth.cpp2
-rw-r--r--src/modules/extra/m_sqllog.cpp2
-rw-r--r--src/modules/extra/m_sqloper.cpp2
-rw-r--r--src/modules/m_alias.cpp2
-rw-r--r--src/modules/m_censor.cpp2
-rw-r--r--src/modules/m_chanfilter.cpp2
-rw-r--r--src/modules/m_chanprotect.cpp2
-rw-r--r--src/modules/m_filter.cpp2
-rw-r--r--src/modules/m_helpop.cpp2
-rw-r--r--src/modules/m_hostchange.cpp2
-rw-r--r--src/modules/m_ident.cpp2
-rw-r--r--src/modules/m_operlevels.cpp2
-rw-r--r--src/modules/m_opermotd.cpp2
-rw-r--r--src/modules/m_override.cpp2
-rw-r--r--src/modules/m_park.cpp2
18 files changed, 18 insertions, 18 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index f9bdeefcf..a1c9ca811 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -312,7 +312,7 @@ void Module::OnUserJoin(userrec* user, chanrec* channel) { }
void Module::OnUserPart(userrec* user, chanrec* channel) { }
void Module::OnPacketTransmit(std::string &data, std::string serv) { }
void Module::OnPacketReceive(std::string &data, std::string serv) { }
-void Module::OnRehash() { }
+void Module::OnRehash(std::string parameter) { }
void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { }
int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; }
int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; }
diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp
index 0cc7fcc26..89e8fe2de 100644
--- a/src/modules/extra/m_filter_pcre.cpp
+++ b/src/modules/extra/m_filter_pcre.cpp
@@ -180,7 +180,7 @@ class ModuleFilterPCRE : public Module
return 0;
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
// reload our config file on rehash - we must destroy and re-allocate the classes
// to call the constructor again and re-read our data.
diff --git a/src/modules/extra/m_sql.cpp b/src/modules/extra/m_sql.cpp
index d25af102a..f1d95cf9f 100644
--- a/src/modules/extra/m_sql.cpp
+++ b/src/modules/extra/m_sql.cpp
@@ -325,7 +325,7 @@ class ModuleSQL : public Module
delete Srv;
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
delete Conf;
Conf = new ConfigReader();
diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp
index d6a6b5e81..e1c0929c4 100644
--- a/src/modules/extra/m_sqlauth.cpp
+++ b/src/modules/extra/m_sqlauth.cpp
@@ -78,7 +78,7 @@ class ModuleSQLAuth : public Module
ReadConfig();
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
ReadConfig();
}
diff --git a/src/modules/extra/m_sqllog.cpp b/src/modules/extra/m_sqllog.cpp
index d47dc7190..f80fec80b 100644
--- a/src/modules/extra/m_sqllog.cpp
+++ b/src/modules/extra/m_sqllog.cpp
@@ -71,7 +71,7 @@ class ModuleSQLLog : public Module
ReadConfig();
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
ReadConfig();
}
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp
index 714374769..630e3520a 100644
--- a/src/modules/extra/m_sqloper.cpp
+++ b/src/modules/extra/m_sqloper.cpp
@@ -62,7 +62,7 @@ class ModuleSQLOper : public Module
ReadConfig();
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
delete Conf;
Conf = new ConfigReader();
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index b3544a960..6eda35f13 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -135,7 +135,7 @@ class ModuleAlias : public Module
}
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
delete MyConf;
MyConf = new ConfigReader;
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index 697e8f5d4..94dbec852 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -168,7 +168,7 @@ class ModuleCensor : public Module
return 0;
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
// reload our config file on rehash - we must destroy and re-allocate the classes
// to call the constructor again and re-read our data.
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index e8abd91a3..9f1722b8d 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -77,7 +77,7 @@ class ModuleChanFilter : public Module
}
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
delete Conf;
Conf = new ConfigReader;
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 1f9687884..0938dacb0 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -86,7 +86,7 @@ class ModuleChanProtect : public Module
user->Shrink("cm_protect_"+std::string(channel->name));
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
// on a rehash we delete our classes for good measure and create them again.
delete Conf;
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 9995c1737..fc4272e3d 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -160,7 +160,7 @@ class ModuleFilter : public Module
return 0;
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
// reload our config file on rehash - we must destroy and re-allocate the classes
// to call the constructor again and re-read our data.
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index ca4b4fed3..ffd63cb06 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -191,7 +191,7 @@ class ModuleHelpop : public Module
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
delete conf;
delete helpop;
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp
index a3e839cad..7bf19313f 100644
--- a/src/modules/m_hostchange.cpp
+++ b/src/modules/m_hostchange.cpp
@@ -47,7 +47,7 @@ class ModuleHostChange : public Module
delete Conf;
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
delete Conf;
Conf = new ConfigReader;
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 45be7e874..a46d931d8 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -269,7 +269,7 @@ class ModuleIdent : public Module
ReadSettings();
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
ReadSettings();
}
diff --git a/src/modules/m_operlevels.cpp b/src/modules/m_operlevels.cpp
index a112040f9..b51655592 100644
--- a/src/modules/m_operlevels.cpp
+++ b/src/modules/m_operlevels.cpp
@@ -32,7 +32,7 @@ class ModuleOperLevels : public Module
delete conf;
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
delete conf;
conf = new ConfigReader;
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 67c066641..2c4a44925 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -78,7 +78,7 @@ class ModuleOpermotd : public Module
ShowOperMOTD(user);
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
LoadOperMOTD();
}
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index 459f99ca9..ed01288a3 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -47,7 +47,7 @@ class ModuleOverride : public Module
NoisyOverride = Conf->ReadFlag("override","noisy",0);
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
// on a rehash we delete our classes for good measure and create them again.
delete Conf;
diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp
index 8ca5fcf89..e46a8f1b4 100644
--- a/src/modules/m_park.cpp
+++ b/src/modules/m_park.cpp
@@ -199,7 +199,7 @@ class ModulePark : public Module
delete Srv;
}
- virtual void OnRehash()
+ virtual void OnRehash(std::string parameter)
{
this->ReadSettings();
}