diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-17 18:05:11 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-17 18:05:11 +0000 |
commit | a8644e71c3fe50605180c186d4e2d408f2ca0cdd (patch) | |
tree | f804604962707a7dcb1e925c83aaa967c39834bb /src/numeric.c | |
parent | 15969d8cd46d4cd4239a6bbe31658e5318d14404 (diff) |
- Made irc numeric use an enum
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2849 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/numeric.c')
-rw-r--r-- | src/numeric.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/numeric.c b/src/numeric.c index 882e6c0..ce5ba82 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -1,8 +1,7 @@ /* - * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). - * numeric.c: Numeric handling functions. + * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) * - * Copyright (C) 2002 by the past and present ircd coders, and others. + * Copyright (c) 1997-2014 ircd-hybrid development team * * 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 @@ -18,15 +17,19 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA - * - * $Id$ + */ + +/*! \file numeric.c + * \brief Declarations of numeric replies. + * \version $Id$ */ #include "stdinc.h" #include "numeric.h" -static const char *const replies[] = { +static const char *const replies[] = +{ /* 000 */ NULL, /* 001 RPL_WELCOME */ ":%s 001 %s :Welcome to the %s Internet Relay Chat Network %s", /* 002 RPL_YOURHOST */ ":%s 002 %s :Your host is %s, running version %s", @@ -1041,7 +1044,7 @@ static const char *const replies[] = { * side effects - NONE */ const char * -form_str(unsigned int numeric) +form_str(enum irc_numerics numeric) { assert(numeric < ERR_LAST_ERR_MSG); |