git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3275 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-02-21 19:11:07 +00:00
parent 94b20ad3b9
commit 326a73ff7b
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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 */

View File

@ -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);