mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
When a numeric nick is passed to FindNick, we call FindUUID instead
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7867 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
0ad2ac70a2
commit
115e6b72fe
@ -236,6 +236,9 @@ void InspIRCd::WriteMode(const char* modes, int flags, const char* text, ...)
|
||||
/* Find a user record by nickname and return a pointer to it */
|
||||
userrec* InspIRCd::FindNick(const std::string &nick)
|
||||
{
|
||||
if (!nick.empty() && isnumeric(*nick.begin()))
|
||||
return FindUUID(nick);
|
||||
|
||||
user_hash::iterator iter = clientlist->find(nick);
|
||||
|
||||
if (iter == clientlist->end())
|
||||
@ -247,6 +250,9 @@ userrec* InspIRCd::FindNick(const std::string &nick)
|
||||
|
||||
userrec* InspIRCd::FindNick(const char* nick)
|
||||
{
|
||||
if (isnumeric(*nick))
|
||||
return FindUUID(nick);
|
||||
|
||||
user_hash::iterator iter = clientlist->find(nick);
|
||||
|
||||
if (iter == clientlist->end())
|
||||
|
Loading…
x
Reference in New Issue
Block a user