summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 15:04:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 15:04:46 +0000
commit0efd83fa4b6a03d28d1e4853ae262edb48b096b0 (patch)
treeb2354dc2154456c55cf3959e867d2a1bfc8e5692 /src/modules
parent366fea7aec3858bcaadfe1a66e7ae8afcde76ebc (diff)
And more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3657 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
-rw-r--r--src/modules/m_foobar.cpp4
-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_kicknorejoin.cpp2
6 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 880bbd1a3..3048795dc 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -550,7 +550,7 @@ class ModuleSSLOpenSSL : public Module
}
}
- virtual void OnDecodeMetaData(int target_type, void* target, std::string extname, const std::string &extdata)
+ virtual void OnDecodeMetaData(int target_type, void* target, const std::string &extname, const std::string &extdata)
{
// check if its our metadata key, and its associated with a user
if ((target_type == TYPE_USER) && (extname == "ssl"))
diff --git a/src/modules/m_foobar.cpp b/src/modules/m_foobar.cpp
index 531176299..9cd8cb45e 100644
--- a/src/modules/m_foobar.cpp
+++ b/src/modules/m_foobar.cpp
@@ -69,7 +69,7 @@ class ModuleFoobar : public Module
Srv->Log(DEBUG,"Foobar: User connecting: " + b);
}
- virtual void OnUserQuit(userrec* user, std::string reason)
+ virtual void OnUserQuit(userrec* user, const std::string &reason)
{
// method called when a user disconnects
@@ -86,7 +86,7 @@ class ModuleFoobar : public Module
Srv->Log(DEBUG,"Foobar: User " + b + " joined " + c);
}
- virtual void OnUserPart(userrec* user, chanrec* channel, std::string partreason)
+ virtual void OnUserPart(userrec* user, chanrec* channel, const std::string &partreason)
{
// method called when a user parts a channel
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index ecdc3f957..c76046727 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -214,7 +214,7 @@ class ModuleHelpop : public Module
List[I_OnRehash] = List[I_OnExtendedMode] = List[I_OnWhois] = 1;
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
delete conf;
if (helpop)
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp
index f6fd2bfa3..49dd99f67 100644
--- a/src/modules/m_hostchange.cpp
+++ b/src/modules/m_hostchange.cpp
@@ -65,7 +65,7 @@ class ModuleHostChange : public Module
List[I_OnRehash] = List[I_OnUserConnect] = 1;
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
delete Conf;
Conf = new ConfigReader;
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index a4a7fa34c..f11d6f330 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -151,7 +151,7 @@ class ModuleIdent : public Module
List[I_OnCleanup] = List[I_OnRehash] = List[I_OnUserRegister] = List[I_OnCheckReady] = List[I_OnUserDisconnect] = 1;
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
ReadSettings();
}
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp
index 2387abb3e..01373019c 100644
--- a/src/modules/m_kicknorejoin.cpp
+++ b/src/modules/m_kicknorejoin.cpp
@@ -103,7 +103,7 @@ public:
return 0;
}
- 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)
{
if (chan->IsCustomModeSet('J') && (source != user))
{