From 790f8c35841ef7c9ec123242611613b540f14c2c Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 28 Nov 2012 04:40:49 +0100 Subject: Have FindUUID(const char*) call FindUUID(const std::string&), not the other way around --- src/helperfuncs.cpp | 10 +++++----- 1 file 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 @@ -100,11 +100,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); @@ -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) { -- cgit v1.2.3