summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-07 10:19:02 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-07 10:19:02 +0100
commit306ef5e3ead14db376657419f3b851ac79be083b (patch)
tree1b29ffd7cf4cf2a3b82d1b81b7976f3655066794 /src
parent6352a6f9c9685c32ec17a7d6f9f89df0e3ec3054 (diff)
Deduplicate code in InspIRCd::FindNick()
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index d636e2d89..78d272b5f 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -37,14 +37,7 @@ User* InspIRCd::FindNick(const std::string &nick)
{
if (!nick.empty() && isdigit(*nick.begin()))
return FindUUID(nick);
-
- user_hash::iterator iter = this->Users->clientlist.find(nick);
-
- if (iter == this->Users->clientlist.end())
- /* Couldn't find it */
- return NULL;
-
- return iter->second;
+ return FindNickOnly(nick);
}
User* InspIRCd::FindNickOnly(const std::string &nick)