summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 4338fb9da..66c9f21ba 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -261,9 +261,29 @@ userrec* InspIRCd::FindNick(const char* nick)
return iter->second;
}
+userrec* InspIRCd::FindNickOnly(const std::string &nick)
+{
+ user_hash::iterator iter = clientlist->find(nick);
+
+ if (iter == clientlist->end())
+ return NULL;
+
+ return iter->second;
+}
+
+userrec* InspIRCd::FindNickOnly(const char* nick)
+{
+ user_hash::iterator iter = clientlist->find(nick);
+
+ if (iter == clientlist->end())
+ return NULL;
+
+ return iter->second;
+}
+
userrec *InspIRCd::FindUUID(const std::string &uid)
{
- return InspIRCd::FindUUID(uid.c_str());
+ return FindUUID(uid.c_str());
}
userrec *InspIRCd::FindUUID(const char *uid)