summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-20 00:11:45 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-20 00:11:45 +0000
commit42fe52c0780ee6ce607f164453c627320525adf9 (patch)
tree91962b28ba98d861ec8a7a697c55b2008f27ac2a /src
parentd1515210cf516912107f8aa48d34ea164c637b85 (diff)
Call find_byuid() if isdigit(*nick) and ircd->ts6 (most likely looking up a uid). Fixes insp12 stuff.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1763 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/users.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/users.c b/src/users.c
index 6c0cecc7c..c25e176d7 100644
--- a/src/users.c
+++ b/src/users.c
@@ -374,15 +374,12 @@ User *finduser(const char *nick)
{
User *user;
- if (!nick || !*nick) {
- if (debug) {
- alog("debug: finduser() called with NULL values");
- }
- return NULL;
- }
-
if (debug >= 3)
alog("debug: finduser(%p)", nick);
+
+ if (isdigit(*nick) && ircd->ts6)
+ return find_byuid(nick);
+
user = userlist[HASH(nick)];
while (user && stricmp(user->nick, nick) != 0)
user = user->next;
@@ -429,12 +426,6 @@ User *find_byuid(const char *uid)
{
User *u, *next;
- if (!uid) {
- if (debug)
- alog("debug: find_byuid() called with NULL-value");
- return NULL;
- }
-
u = first_uid();
while (u) {
next = next_uid();