summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_swhois.cpp10
-rw-r--r--src/modules/m_timedbans.cpp2
-rw-r--r--src/modules/m_vhost.cpp2
-rw-r--r--src/modules/m_watch.cpp4
4 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index 77f882d0e..a4d947102 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -85,7 +85,7 @@ class ModuleSWhois : public Module
Srv->AddCommand(mycommand);
}
- void OnRehash(std::string parameter)
+ void OnRehash(const std::string &parameter)
{
delete Conf;
Conf = new ConfigReader();
@@ -112,7 +112,7 @@ class ModuleSWhois : public Module
// this method is called. We should use the ProtoSendMetaData function after we've
// corrected decided how the data should look, to send the metadata on its way if
// it is ours.
- virtual void OnSyncUserMetaData(userrec* user, Module* proto, void* opaque, std::string extname)
+ virtual void OnSyncUserMetaData(userrec* user, Module* proto, void* opaque, const std::string &extname)
{
// check if the linking module wants to know about OUR metadata
if (extname == "swhois")
@@ -131,7 +131,7 @@ class ModuleSWhois : public Module
}
// when a user quits, tidy up their metadata
- virtual void OnUserQuit(userrec* user, std::string message)
+ virtual void OnUserQuit(userrec* user, const std::string &message)
{
char* field = user->GetExt("swhois");
if (field)
@@ -165,7 +165,7 @@ class ModuleSWhois : public Module
// In our case we're only sending a single string around, so we just construct a std::string.
// Some modules will probably get much more complex and format more detailed structs and classes
// in a textual way for sending over the link.
- 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)
{
// check if its our metadata key, and its associated with a user
if ((target_type == TYPE_USER) && (extname == "swhois"))
@@ -180,7 +180,7 @@ class ModuleSWhois : public Module
}
}
- virtual void OnOper(userrec* user, std::string opertype)
+ virtual void OnOper(userrec* user, const std::string &opertype)
{
for(int i =0; i < Conf->Enumerate("type"); i++)
{
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 470d0edee..190f89f0e 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -127,7 +127,7 @@ class ModuleTimedBans : public Module
List[I_OnDelBan] = List[I_OnBackgroundTimer] = 1;
}
- virtual int OnDelBan(userrec* source, chanrec* chan, std::string banmask)
+ virtual int OnDelBan(userrec* source, chanrec* chan, const std::string &banmask)
{
for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end(); i++)
{
diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp
index df2ff747e..22bb771c2 100644
--- a/src/modules/m_vhost.cpp
+++ b/src/modules/m_vhost.cpp
@@ -81,7 +81,7 @@ class ModuleVHost : public Module
List[I_OnRehash] = 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_watch.cpp b/src/modules/m_watch.cpp
index 934a487b9..e3a0815a5 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -204,7 +204,7 @@ class Modulewatch : public Module
List[I_OnUserQuit] = List[I_OnGlobalConnect] = List[I_OnUserPostNick] = List[I_On005Numeric] = 1;
}
- virtual void OnUserQuit(userrec* user, std::string reason)
+ virtual void OnUserQuit(userrec* user, const std::string &reason)
{
log(DEBUG,"*** WATCH: On global quit: user %s",user->nick);
irc::string n2 = user->nick;
@@ -248,7 +248,7 @@ class Modulewatch : public Module
}
}
- virtual void OnUserPostNick(userrec* user, std::string oldnick)
+ virtual void OnUserPostNick(userrec* user, const std::string &oldnick)
{
irc::string n2 = oldnick.c_str();
irc::string n3 = user->nick;