summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 01:35:55 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 01:35:55 +0000
commit099124efd7da13b0165e53a8739692f192757cce (patch)
treeb204cff9f75e5010048aabfa69e251e87ae0914c /src/helperfuncs.cpp
parent0c9434cde9c972f488abc7a2e72aacdd92f31f8b (diff)
Fix me not being able to code..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7856 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp8
1 files 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 */