summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-11-28 04:40:49 +0100
committerattilamolnar <attilamolnar@hush.com>2012-11-28 19:28:51 +0100
commit790f8c35841ef7c9ec123242611613b540f14c2c (patch)
tree59cd5d96b14b7d2167a2abae3f6f5796374d88bd /src/helperfuncs.cpp
parent772dad05a42e20e03a5445b84a7f6612ee44283f (diff)
Have FindUUID(const char*) call FindUUID(const std::string&), not the other way around
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 7058cf8d3..3795e6398 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -101,11 +101,6 @@ User* InspIRCd::FindNickOnly(const char* nick)
User *InspIRCd::FindUUID(const std::string &uid)
{
- return FindUUID(uid.c_str());
-}
-
-User *InspIRCd::FindUUID(const char *uid)
-{
user_hash::iterator finduuid = this->Users->uuidlist->find(uid);
if (finduuid == this->Users->uuidlist->end())
@@ -114,6 +109,11 @@ User *InspIRCd::FindUUID(const char *uid)
return finduuid->second;
}
+User *InspIRCd::FindUUID(const char *uid)
+{
+ return FindUUID(std::string(uid));
+}
+
/* find a channel record by channel name and return a pointer to it */
Channel* InspIRCd::FindChan(const char* chan)
{