]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix me not being able to code..
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 27 Aug 2007 01:35:55 +0000 (01:35 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 27 Aug 2007 01:35:55 +0000 (01:35 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7856 e03df62e-2008-0410-955e-edbf42e46eb7

src/helperfuncs.cpp

index fae9759d95b1d5f33973f1e8df8c893dfab69684..cb5511ef24b2224a39268ba1ad21e7a3a8f4b928 100644 (file)
@@ -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 */