From 326a73ff7bd43564cd850c9db2ca9ccde53a5292 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 21 Feb 2006 19:11:07 +0000 Subject: Fixed git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3275 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 4 ++-- src/helperfuncs.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3