From 7385c0352c7fe7e9ceca343400a5caa5ddd999d6 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 30 Nov 2020 02:29:18 +0300 Subject: 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 --- src/const_vars.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/const_vars.hpp') 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 -- cgit v1.2.3-18-g5258