mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 15:22:53 +02:00
Constants
- Segmented into sections based on rfc - Added a few new constants from RFC2812 - `RPL_BOUNCE` (`005`) is a numeric response to note as it has key-value pairs associated with it
This commit is contained in:
parent
672b8fee64
commit
1f7e3a96af
@ -1,8 +1,14 @@
|
|||||||
module birchwood.protocol.constants;
|
module birchwood.protocol.constants;
|
||||||
|
|
||||||
/* Reply object */
|
/**
|
||||||
public enum ReplyType : ulong
|
* The type of numeric response
|
||||||
{
|
*/
|
||||||
|
public enum ReplyType : ulong
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* rfc 1459
|
||||||
|
*/
|
||||||
|
|
||||||
/* Error replies */
|
/* Error replies */
|
||||||
ERR_NOSUCHNICK = 401,
|
ERR_NOSUCHNICK = 401,
|
||||||
ERR_NOSUCHSERVER = 402,
|
ERR_NOSUCHSERVER = 402,
|
||||||
@ -144,5 +150,19 @@ module birchwood.protocol.constants;
|
|||||||
ERR_BADCHANMASK = 476,
|
ERR_BADCHANMASK = 476,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* rfc 2812
|
||||||
|
*/
|
||||||
|
RPL_WELCOME = 001,
|
||||||
|
RPL_YOURHOST = 002,
|
||||||
|
RPL_CREATED = 003,
|
||||||
|
RPL_MYINFO = 004,
|
||||||
|
RPL_BOUNCE = 005, // TODO: We care about the key-value pairs here in RPL_BOUNCE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If no code is matched then this is the default
|
||||||
|
*/
|
||||||
BIRCHWOOD_UNKNOWN_RESP_CODE = 0
|
BIRCHWOOD_UNKNOWN_RESP_CODE = 0
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user