40 lines
1.8 KiB
C
40 lines
1.8 KiB
C
#ifndef s_message_class_h
|
|
#define s_message_class_h
|
|
|
|
#define MSG_NOBLOCK (1 << 0) /* no blocking */
|
|
#define MSG_NOCOLOUR (1 << 1) /* no colours */
|
|
#define MSG_NOWRAP (1 << 2) /* don't wrap this message */
|
|
|
|
#define MSG_CONV (1 << 3) /* conversation */
|
|
#define MSG_EDIT ((1 << 4) | MSG_NOBLOCK | MSG_NOCOLOUR | MSG_NOWRAP)
|
|
/* editor */
|
|
#define MSG_ENV (1 << 5) /* general stuff */
|
|
#define MSG_ERROR ((1 << 6) | MSG_NOBLOCK) /* error messages */
|
|
#define MSG_HELP ((1 << 7) | MSG_NOBLOCK) /* help messages */
|
|
#define MSG_ROOMDESC ((1 << 8) | MSG_NOBLOCK) /* room descs */
|
|
#define MSG_PROMPT ((1 << 9) | MSG_NOBLOCK | MSG_NOWRAP) /* prompts */
|
|
#define MSG_SYSTEM ((1 << 10) | MSG_NOBLOCK) /* sys messages */
|
|
|
|
/* client specific messages */
|
|
#define MSG_LOGIN (1 << 11) /* prot. neg. for login */
|
|
#define MSG_MSG_BOX (1 << 12) /* display msg box */
|
|
#define MSG_QUERY (1 << 13) /* response to client */
|
|
|
|
#define MSG_CHAN (1 << 14)
|
|
#define MSG_FTP (1 << 15)
|
|
#define MSG_HTTP (1 << 16)
|
|
#define MSG_RCP (1 << 17)
|
|
#define MSG_I3 (1 << 18)
|
|
#define MSG_HFTP (1 << 19)
|
|
#define MSG_OOB (1 << 20)
|
|
#define MSG_ANNOYING (1 << 21)
|
|
#define MSG_RECEIVE (1 << 22) /* skip the line feed */
|
|
|
|
|
|
/* client command types */
|
|
#define CMD_LOGIN (1 << 0) /* login */
|
|
#define CMD_USER (1 << 1) /* normal user cmds */
|
|
#define CMD_QUERY (1 << 2) /* client query */
|
|
|
|
#endif /* s_message_class_h */
|