diff options
author | Joursoir <chat@joursoir.net> | 2020-11-30 02:29:18 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2020-11-30 02:29:18 +0300 |
commit | 7385c0352c7fe7e9ceca343400a5caa5ddd999d6 (patch) | |
tree | 9f6968d4c7b646a64f36baf214fcf5af622f366d /src/const_vars.hpp | |
parent | 4d4cd095cd3a2f0b65f0ed19af51c667c5941abc (diff) | |
download | want-chat-7385c0352c7fe7e9ceca343400a5caa5ddd999d6.tar.gz want-chat-7385c0352c7fe7e9ceca343400a5caa5ddd999d6.tar.bz2 want-chat-7385c0352c7fe7e9ceca343400a5caa5ddd999d6.zip |
refactoring and some feature
client: type nick in argument
server: basis for registration;
change style add commands;
edit send msg to user;
feature: private room
Diffstat (limited to 'src/const_vars.hpp')
-rw-r--r-- | src/const_vars.hpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/const_vars.hpp b/src/const_vars.hpp index d41f800..54ef70f 100644 --- a/src/const_vars.hpp +++ b/src/const_vars.hpp @@ -8,16 +8,14 @@ */ const int max_name_len = 18; +const int min_name_len = 3; const int oneline_len = 57; 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: '#' +const int usual_msg = 0; // no first char +const int system_msg = 1; +const char system_char = '#'; #endif
\ No newline at end of file |