summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/helperfuncs.h2
-rw-r--r--src/dnsqueue.cpp4
-rw-r--r--src/helperfuncs.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/helperfuncs.h b/include/helperfuncs.h
index 15a11e531..c5939f8ba 100644
--- a/include/helperfuncs.h
+++ b/include/helperfuncs.h
@@ -60,7 +60,7 @@ void ServerNoticeAll(char* text, ...);
void ServerPrivmsgAll(char* text, ...);
void WriteWallOps(userrec *source, bool local_only, char* text, ...);
void strlower(char *n);
-userrec* Find(std::string &nick);
+userrec* Find(std::string nick);
userrec* Find(const char* nick);
chanrec* FindChan(const char* chan);
long GetMaxBans(char* name);
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 3858b16aa..c117ad4cb 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -87,7 +87,7 @@ public:
bool DoLookup(std::string nick)
{
hostname = "";
- userrec* usr = Find(nick.c_str());
+ userrec* usr = Find(nick);
if (usr)
{
resolver1.SetNS(std::string(Config->DNSServer));
@@ -210,7 +210,7 @@ public:
bool lookup_dns(std::string nick)
{
/* First attempt to find the nickname */
- userrec* u = Find(nick.c_str());
+ userrec* u = Find(nick);
if (u)
{
/* Check the cache */
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 6e90c023c..6b7178e22 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -1013,7 +1013,7 @@ void strlower(char *n)
/* Find a user record by nickname and return a pointer to it */
-userrec* Find(std::string &nick)
+userrec* Find(std::string nick)
{
user_hash::iterator iter = clientlist.find(nick);