summaryrefslogtreecommitdiff
path: root/src/modules/m_park.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_park.cpp')
-rw-r--r--src/modules/m_park.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp
index 29ce2c1eb..4cd163af1 100644
--- a/src/modules/m_park.cpp
+++ b/src/modules/m_park.cpp
@@ -235,7 +235,7 @@ class ModulePark : public Module
List[I_On005Numeric] = List[I_OnRehash] = List[I_OnUserQuit] = List[I_OnUserPreMessage] = List[I_OnUserPreNick] = List[I_OnBackgroundTimer] = List[I_OnWhois] = 1;
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
this->ReadSettings();
}
@@ -245,7 +245,7 @@ class ModulePark : public Module
output = output + std::string(" PARK");
}
- virtual void OnUserQuit(userrec* user, std::string reason)
+ virtual void OnUserQuit(userrec* user, const std::string &reason)
{
std::string nick = user->nick;
// track quits in our parked user list
@@ -260,7 +260,7 @@ class ModulePark : public Module
}
- virtual void OnPrePrivmsg(userrec* user, userrec* dest, std::string text)
+ virtual void OnPrePrivmsg(userrec* user, userrec* dest, const std::string &text)
{
awaylog* awy = (awaylog*)dest->GetExt("park_awaylog");
if (awy)
@@ -278,7 +278,7 @@ class ModulePark : public Module
}
}
- virtual int OnUserPreNick(userrec* user, std::string newnick)
+ virtual int OnUserPreNick(userrec* user, const std::string &newnick)
{
// track nickchanges in our parked user list
// (this isnt too efficient, i'll tidy it up some time)