Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / include / numeric.h
index ed631d2e7d1d06b18d45795998c99f6db330749d..828156d00e0da782382aa0c94525e1ea7ba7d281 100644 (file)
  * 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$
+ */
+/** @file
+ * @brief Declarations of numeric replies and supporting functions.
+ * @version $Id$
  */
 #ifndef INCLUDED_numeric_h
 #define INCLUDED_numeric_h
 
+/** Numeric reply information. */
 typedef struct Numeric {
-  int         value;
-  const char* format;
-  const char* str;
+  int         value;  /**< Numeric response. */
+  const char* format; /**< Format string to follow :My.Server NNN Dest */
+  const char* str;    /**< Text form for numeric. */
 } Numeric;
 
 /*
  * Prototypes
  */
-extern char* err_str(int numeric);
 extern char* rpl_str(int numeric);
 extern const struct Numeric* get_error_numeric(int err);
 
@@ -52,13 +54,11 @@ extern const struct Numeric* get_error_numeric(int err);
 #define RPL_CREATED            3
 #define RPL_MYINFO             4
 #define RPL_ISUPPORT           5        /* Undernet/Dalnet extension */
-     /* RPL_BOUNCE                         IRCnet extension */
 /*     RPL_MAP                6        unreal */
 /*     RPL_MAPEND             7        unreal */
 #define RPL_SNOMASK            8        /* Undernet extension */
-#define RPL_STATMEMTOT         9        /* Undernet extension */
-#define RPL_STATMEM           10        /* Undernet extension */
-                                       /* Hybrid: server redirect */
+/*       RPL_BOUNCE           10        efnet, IRCnet extension
+                                        (server redirect) */
 /*      RPL_YOURCOOKIE        14           IRCnet extension */
 #define RPL_MAP               15        /* Undernet extension */
 #define RPL_MAPMORE           16        /* Undernet extension */
@@ -84,7 +84,7 @@ extern const struct Numeric* get_error_numeric(int err);
 #define RPL_TRACECLASS       209
 /*      RPL_STATS            210 aircd extension, used instead of having
                                  multiple stats numerics */
-/*      RPL_TRACERECONNECT   210 IRCnet extension */                                 
+/*      RPL_TRACERECONNECT   210 IRCnet extension */
 #define RPL_STATSLINKINFO    211
 #define RPL_STATSCOMMANDS    212
 #define RPL_STATSCLINE       213
@@ -325,7 +325,7 @@ extern const struct Numeric* get_error_numeric(int err);
 /*      ERR_NOSUCHSERVICE    408  IRCnet */
 /*     ERR_NOCOLORSONCHAN   408  Dalnet */
 #define ERR_NOORIGIN         409
-
+#define ERR_UNKNOWNCAPCMD    410
 #define ERR_NORECIPIENT      411
 #define ERR_NOTEXTTOSEND     412
 #define ERR_NOTOPLEVEL       413
@@ -452,7 +452,7 @@ extern const struct Numeric* get_error_numeric(int err);
        ERR_WHOSYNTAX        522        dalnet
        ERR_WHOLIMEXCEED     523        dalnet */
 #define ERR_QUARANTINED      524       /* Undernet extension -Vampire */
+
 #define ERR_NOTLOWEROPLEVEL  550       /* Undernet extension */
 #define ERR_NOTMANAGER       551       /* Undernet extension */
 #define ERR_CHANSECURED      552       /* Undernet extension */
@@ -472,12 +472,12 @@ extern const struct Numeric* get_error_numeric(int err);
        RPL_MAPMORE          610        unreal
 
        RPL_MAPMORE          615        PTlink
-       
+
        RPL_DCCSTATUS        617        dalnet
        RPL_DCCLIST          618        dalnet
        RPL_ENDOFDCCLIST     619        dalnet
        RPL_DCCINFO          620        dalnet
-       
+
        RPL_DUMPING          640        unreal
        RPL_DUMPRPL          641        unreal
        RPL_EODUMP           642        unreal