diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/helperfuncs.cpp | 10 |
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) { |