summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 14:52:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 14:52:07 +0000
commitc6d28ade53dd307a079dc6cbac2ae5df22aef4f9 (patch)
tree4070cdd9de176573fbc223fb595bfebc01b6a67c
parent9a526c77cc57921d81f4d8617b7e42bdb72dc79c (diff)
More converted modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3655 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_cban.cpp2
-rw-r--r--src/modules/m_censor.cpp2
-rw-r--r--src/modules/m_chanfilter.cpp4
-rw-r--r--src/modules/m_chanprotect.cpp6
-rw-r--r--src/modules/m_cloaking.cpp2
-rw-r--r--src/modules/m_conn_waitpong.cpp4
-rw-r--r--src/modules/m_denychans.cpp2
7 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index fa554102f..db0bf657a 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -183,7 +183,7 @@ class ModuleCBan : public Module
}
}
- virtual void OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata)
+ virtual void OnDecodeMetaData(int target_type, void* target, const std::string &extname, const std::string &extdata)
{
if((target_type == TYPE_OTHER) && (extname == "cban"))
{
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index 6711dc419..d42e8b324 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -142,7 +142,7 @@ class ModuleCensor : public Module
return OnUserPreMessage(user,dest,target_type,text,status);
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
/*
* reload our config file on rehash - we must destroy and re-allocate the classes
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index e19bc0603..471179bc6 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -58,7 +58,7 @@ class ModuleChanFilter : public Module
InsertMode(output,"g",1);
}
- virtual void OnUserPart(userrec* user, chanrec* channel, std::string partreason)
+ virtual void OnUserPart(userrec* user, chanrec* channel, const std::string &partreason)
{
// when the last user parts, delete the list
if (Srv->CountUsers(channel) == 1)
@@ -72,7 +72,7 @@ class ModuleChanFilter : public Module
}
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
delete Conf;
Conf = new ConfigReader;
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index a0a0da1e0..b7d67d9ae 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -64,21 +64,21 @@ class ModuleChanProtect : public Module
InsertMode(output,"qa",1);
}
- virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason)
+ virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason)
{
// FIX: when someone gets kicked from a channel we must remove their Extensibles!
user->Shrink("cm_founder_"+std::string(chan->name));
user->Shrink("cm_protect_"+std::string(chan->name));
}
- virtual void OnUserPart(userrec* user, chanrec* channel, std::string partreason)
+ virtual void OnUserPart(userrec* user, chanrec* channel, const std::string &partreason)
{
// FIX: when someone parts a channel we must remove their Extensibles!
user->Shrink("cm_founder_"+std::string(channel->name));
user->Shrink("cm_protect_"+std::string(channel->name));
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const 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_cloaking.cpp b/src/modules/m_cloaking.cpp
index 95187864f..cddf2778d 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -301,7 +301,7 @@ class ModuleCloaking : public Module
return Version(1,0,0,1,VF_STATIC|VF_VENDOR);
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
ConfigReader* Conf = new ConfigReader();
key1 = key2 = key3 = key4 = 0;
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp
index 83958ee2d..f67021af5 100644
--- a/src/modules/m_conn_waitpong.cpp
+++ b/src/modules/m_conn_waitpong.cpp
@@ -42,7 +42,7 @@ class ModuleWaitPong : public Module
OnRehash("");
}
- virtual void OnRehash(std::string param)
+ virtual void OnRehash(const std::string &param)
{
Conf = new ConfigReader;
@@ -76,7 +76,7 @@ class ModuleWaitPong : public Module
user->Extend("waitpong_pingstr", pingrpl);
}
- virtual int OnPreCommand(std::string command, char** parameters, int pcnt, userrec* user, bool validated)
+ virtual int OnPreCommand(const std::string &command, char** parameters, int pcnt, userrec* user, bool validated)
{
if(command == "PONG")
{
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index ba66d2294..c838a495d 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -36,7 +36,7 @@ class ModuleDenyChannels : public Module
Conf = new ConfigReader;
}
- virtual void OnRehash(std::string param)
+ virtual void OnRehash(const std::string &param)
{
delete Conf;
Conf = new ConfigReader;