diff options
author | Joursoir <chat@joursoir.net> | 2020-11-27 01:41:09 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2020-11-27 01:41:09 +0300 |
commit | 5cbaa841d0bf07f75614205059324e5d2adbc5dd (patch) | |
tree | 15ead74ebce111bb1952a81e4ea5bbb818fbeca9 /src/const_vars.hpp | |
parent | 67cdd15d97b14dd92de28fdbdb2770187c94e338 (diff) | |
download | want-chat-5cbaa841d0bf07f75614205059324e5d2adbc5dd.tar.gz want-chat-5cbaa841d0bf07f75614205059324e5d2adbc5dd.tar.bz2 want-chat-5cbaa841d0bf07f75614205059324e5d2adbc5dd.zip |
server: add different messages, support commands('/') and spec-messages
Diffstat (limited to 'src/const_vars.hpp')
-rw-r--r-- | src/const_vars.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/const_vars.hpp b/src/const_vars.hpp index 9c7b1c5..d41f800 100644 --- a/src/const_vars.hpp +++ b/src/const_vars.hpp @@ -13,4 +13,11 @@ const int max_usermsg_len = oneline_len * 3 - max_name_len - 2; // ": " = 2 // 57 * 3 - 18 - 2 = 151 const int max_msg_len = oneline_len * 3; // 57*3 = 171 +const int key_enter = 10; +const int key_escape = 27; +const int key_backspace = 127; + +const int usually_msg = 0; // no first char +const int system_msg = 1; // first char: '#' + #endif
\ No newline at end of file |