From 099124efd7da13b0165e53a8739692f192757cce Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 27 Aug 2007 01:35:55 +0000 Subject: Fix me not being able to code.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7856 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index fae9759d9..cb5511ef2 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -257,20 +257,22 @@ userrec* InspIRCd::FindNick(const char* nick) userrec *InspIRCd::FindUUID(const std::string &uid) { - return InspIRCd::FindUID(uid.c_str()); + return InspIRCd::FindUUID(uid.c_str()); } userrec *InspIRCd::FindUUID(const char *uid) { - for (user_hash::const_iterator a = ServerInstance->clientlist->begin(); a != ServerInstance->clientlist->end(); a++) + for (user_hash::const_iterator a = this->clientlist->begin(); a != this->clientlist->end(); a++) { userrec *u = a->second; - if (strcmp(u->uuid, uid) == 0 + if (strcmp(u->uuid, uid) == 0) { return u; } } + + return NULL; } /* find a channel record by channel name and return a pointer to it */ -- cgit v1.2.3