diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-13 19:01:17 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-13 19:01:17 +0000 |
commit | 95538518b3d672ffd9ad46a91293a8b2d4b35220 (patch) | |
tree | 8865370dfe131970a4ab5b4e012112aec63aae3d /include | |
parent | 33f80efab6317529a999aabeab8082972a2754a4 (diff) |
Add include/numerics.h, contains/will contain an enum for numerics. Work in progress.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10006 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 1 | ||||
-rw-r--r-- | include/numerics.h | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index dbbd8ba01..5e5ebce42 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -40,6 +40,7 @@ #include <climits> #include "inspircd_config.h" +#include "numerics.h" #include "uid.h" #include "users.h" #include "channels.h" diff --git a/include/numerics.h b/include/numerics.h new file mode 100644 index 000000000..6a587a5b3 --- /dev/null +++ b/include/numerics.h @@ -0,0 +1,41 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits + * + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + +/* + * This file is aimed providing a string that is easier to use than using the numeric + * directly. + * + * Thanks to Darom, jackmcbarn and Brain for suggesting and discussing this. + * + * Please note that the list may not be exhaustive, it'll be done when I have + * nothing better to do with my time. -- w00t (jul 13, 2008) + */ + +enum Numerics +{ + /* + * Reply range of numerics. + */ + RPL_TOPIC = 332, + RPL_TOPICTIME = 333, + + + /* + * Error range of numerics. + */ + ERR_TOOMANYCHANNELS = 405, + ERR_BADCHANNELKEY = 475, + ERR_INVITEONLYCHAN = 473, + ERR_CHANNELISFULL = 471, + ERR_BANNEDFROMCHAN = 474 +}; |