summaryrefslogtreecommitdiff
path: root/src/modules/m_park.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 15:22:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 15:22:26 +0000
commit981ca37d6641404548a13623b90438f8f1c87ded (patch)
treee35373c8b3f647ee64f68a1f29d88743ff3c7eae /src/modules/m_park.cpp
parent0efd83fa4b6a03d28d1e4853ae262edb48b096b0 (diff)
Yet more const ref changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3658 e03df62e-2008-0410-955e-edbf42e46eb7
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)