/******************************************************************************
* This file is part of a software distribution, which is furnished under the *
* terms of a license. Use of this software by any means is subject to this *
* license and signifies the acceptance of the licensing terms stated *
* therein. Please see the file LICENSE in the top-level directory of this *
* software distribution for detailed copyright disclaimers and licensing *
* terms. *
******************************************************************************
* Copryight (c) by Andreas S. Wetzel - All rights reserved. *
******************************************************************************/
/* $Id: verror.c,v 1.2 2001/03/19 14:54:03 mickey Exp $ */
#include <vchat.h>
#include <proto_common.h>
/*** Global ***/
u_char *v_errlist[] =
{
"Connection established",
"Magic number mismatch",
"Incompatible protocol revision",
"Invalid nickname",
"Nickname already in use",
"Nickname too long",
"Client type unknown",
"Server memory fault",
"Access denied",
"Rejected due to missing or invalid DNS name",
"Authorization failed",
"Authorization required",
""
};
/*** Code ***/
char *v_error(u_char verrno)
{
if(verrno >= CONN_MAX)
return("undefined error");
else
return(v_errlist[verrno]);
}
syntax highlighted by Code2HTML, v. 0.9.1