/************************************************************************
 *   IRC - Internet Relay Chat, include/find.h
 *
 *   Copyright (C) 2000-2002 TR-IRCD Development
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2, or (at your option)
 *   any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/* $Id: find.h,v 5.0 2002/03/06 15:53:46 tr-ircd Exp $ */

#ifndef	__find_include__
#define __find_include__

static inline aClient *find_person(char *name)
{
   aClient *acptr;

   if (name == NULL)
	return NULL;

   acptr = find_client(name);

   return acptr ? (IsClient(acptr) ? acptr : NULL) : NULL;
}

#endif /* __find_include__ */
